force cast

This commit is contained in:
Kisaragi Marine 2024-06-21 04:29:39 +09:00
parent 3b2bf5ec9c
commit 997b588847
No known key found for this signature in database
GPG key ID: C6631564CD2110E4

View file

@ -88,7 +88,7 @@ export const api = async <E extends keyof misskey.Endpoints>(path: E, params: mi
}); });
const body = res.headers.get('content-type') === 'application/json; charset=utf-8' const body = res.headers.get('content-type') === 'application/json; charset=utf-8'
? await res.json() ? await res.json() as misskey.Endpoints[E]['res']
: null; : null;
return { return {