From 79f71acd42af4ad8c5b91fc95a272a4dd48d7c36 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 21 May 2023 14:15:45 +0000 Subject: [PATCH] wip --- packages/misskey-js/src/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }