Skip to content

docs(arcgis-rest-portal): fix incorrect documentation for searchGroupContent #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions packages/arcgis-rest-portal/src/groups/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,17 @@ export function searchGroups(
* ```js
* import { searchGroupContent } from "@esri/arcgis-rest-portal";
*
* searchGroupContent('water')
* .then(response) // response.total => 355
* searchGroupContent({
* q: 'water',
* groupId: 'abc123'
* })
* .then(response => {
* console.log(response.total);
* });
* ```
*
* @param options - RequestOptions object amended with search parameters.
* @returns A Promise that will resolve with the data from the response.
* @param options - An object containing search parameters.
* @returns A Promise that resolves to the search result containing items within the specified group.
*/
export function searchGroupContent(
options: ISearchGroupContentOptions
Expand Down