kill any on utils:api

This commit is contained in:
Kisaragi Marine 2024-06-21 03:44:02 +09:00
parent b683d79f8b
commit 37f6fda48f
No known key found for this signature in database
GPG Key ID: C6631564CD2110E4

View File

@ -67,7 +67,7 @@ export const failedApiCall = async <T, E extends keyof misskey.Endpoints, P exte
export const api = async <E extends keyof misskey.Endpoints>(path: E, params: misskey.Endpoints[E]['req'], me?: UserToken): Promise<{
status: number,
headers: Headers,
body: any
body: misskey.Endpoints[E]['res']
}> => {
const bodyAuth: Record<string, string> = {};
const headers: Record<string, string> = {