Skip to content

Commit

Permalink
lump alternate response sigs together
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Jul 27, 2018
1 parent 0f0d0bf commit 5123c06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
21 changes: 0 additions & 21 deletions demos/attachments/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 6 additions & 9 deletions packages/arcgis-rest-feature-service/src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,11 @@ export interface IQueryFeaturesResponse extends IFeatureSet {
exceededTransferLimit?: boolean;
}

export interface IQueryCountResponse {
count: number;
}

export interface IQueryExtentResponse {
extent: IExtent;
export interface IQueryResponse {
count?: number;
extent?: IExtent;
objectIdFieldName?: string;
objectIds?: number[];
}

/**
Expand Down Expand Up @@ -153,9 +152,7 @@ export function getFeature(
*/
export function queryFeatures(
requestOptions: IQueryFeaturesRequestOptions
): Promise<
IQueryFeaturesResponse | IQueryCountResponse | IQueryExtentResponse
> {
): Promise<IQueryFeaturesResponse | IQueryResponse> {
// default to a GET request
const options: IQueryFeaturesRequestOptions = {
params: {},
Expand Down

0 comments on commit 5123c06

Please sign in to comment.