force cast
This commit is contained in:
parent
3b2bf5ec9c
commit
997b588847
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue