Skip to content

Commit d61f648

Browse files
committed
fix: Search users types
1 parent f4e8171 commit d61f648

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/user.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ export class User extends BaseEndpoint {
1919
return this.client.get(endpoint, { params });
2020
}
2121

22-
search({ next = null, params = {} }): Promise<AxiosResponse<{ next: null | string; results: UsercomUser[] }>> {
22+
search({
23+
next = null,
24+
params = {}
25+
}: {
26+
next: null | string;
27+
params?: Record<string, any>;
28+
}): Promise<AxiosResponse<{ next: null | string; results: UsercomUser[] }>> {
2329
const endpoint = next || `/users/search/`;
2430

2531
return this.client.get(endpoint, { params });

0 commit comments

Comments
 (0)