fix: remove casts when using makeURLSearchParams() (#8877)

This commit is contained in:
Almeida
2022-11-28 21:22:02 +00:00
committed by GitHub
parent 1a10f48bc3
commit 7430c8e4c8
6 changed files with 19 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ export class InvitesAPI {
*/
public async get(code: string, options: RESTGetAPIInviteQuery = {}) {
return this.rest.get(Routes.invite(code), {
query: makeURLSearchParams(options as Record<string, unknown>),
query: makeURLSearchParams(options),
}) as Promise<RESTGetAPIInviteResult>;
}