From 997b588847327efd357ddac780db2f0084e045a6 Mon Sep 17 00:00:00 2001 From: Kisaragi Marine Date: Fri, 21 Jun 2024 04:29:39 +0900 Subject: [PATCH] force cast --- packages/backend/test/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/test/utils.ts b/packages/backend/test/utils.ts index e5210d8717..c10f50a98e 100644 --- a/packages/backend/test/utils.ts +++ b/packages/backend/test/utils.ts @@ -88,7 +88,7 @@ export const api = async (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 {