diff --git a/packages/misskey-js/src/api.ts b/packages/misskey-js/src/api.ts index ebb2a263b..303984f44 100644 --- a/packages/misskey-js/src/api.ts +++ b/packages/misskey-js/src/api.ts @@ -43,7 +43,7 @@ export class APIClient { } public request, M extends IEndpointMeta = Endpoints[E]>( - endpoint: E, params: P, credential?: string | null | undefined, + endpoint: E, params?: P, credential?: string | null | undefined, ): Promise> { const promise = new Promise((resolve, reject) => { @@ -74,6 +74,6 @@ export class APIClient { }).catch(reject); }); - return promise as Promise>; + return promise as any; } }