Skip to content

Commit

Permalink
fix(:grey_question:): make item.protected optional, since search does…
Browse files Browse the repository at this point in the history
…nt return it

AFFECTS PACKAGES:
@esri/arcgis-rest-common-types
@esri/arcgis-rest-items
  • Loading branch information
jgravois committed Oct 12, 2018
1 parent 8bdb30b commit 7aa8123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/arcgis-rest-common-types/src/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ export interface IItem extends IItemAdd {
tags: string[];
created: number;
modified: number;
protected: boolean;
protected?: boolean; // not present in search results
}
3 changes: 1 addition & 2 deletions packages/arcgis-rest-items/test/mocks/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ export const SearchResponse: ISearchResult = {
numComments: 0,
numRatings: 0,
avgRating: 0,
numViews: 4,
protected: false
numViews: 4
}
]
};

0 comments on commit 7aa8123

Please sign in to comment.