Skip to content

Commit

Permalink
force cast
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Jun 20, 2024
1 parent 3b2bf5e commit 997b588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
? await res.json()
? await res.json() as misskey.Endpoints[E]['res']
: null;

return {
Expand Down

0 comments on commit 997b588

Please sign in to comment.