Open patrickarlt opened 5 years ago
I'm getting this error:
Property 'results' does not exist on type 'ISearchResult<IItem> | {}'.
Property 'results' does not exist on type '{}'.ts(2339)
when running this code:
const {features} = await searchItems(...);
I think this might be related to this. Not sure is there a workaround?
I would love to fix this! 🙋♂️
To clarify, IItem[] | IGroup[] | IUser[] | IItem | IGroup | IUser
in https://esri.github.io/arcgis-rest-js/api/portal/searchItems/#results
should just be IItem[] | IGroup[] | IUser[]
?
Displays as
IItem[] | IGroup[] | IItem | IGroup
should display as onlyIItem[] | IGroup[]
https://esri.github.io/arcgis-rest-js/api/portal/searchItems/#results