From b7bb25ce7df45a0de68f887012f9ca96cf13f4e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D+85CD?= <50108258+kwaa@users.noreply.github.com> Date: Fri, 25 Apr 2025 16:45:04 +0800 Subject: [PATCH] chore: fix lint warning --- packages/shared/src/utils/response-json.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/utils/response-json.ts b/packages/shared/src/utils/response-json.ts index a9881b1..0357c93 100644 --- a/packages/shared/src/utils/response-json.ts +++ b/packages/shared/src/utils/response-json.ts @@ -1,11 +1,12 @@ import { responseCatch } from './response-catch' -export const responseJSON = async (res: Response) => +export const responseJSON = async (res: Response): Promise => responseCatch(res) .then(async (res) => { const text = await res.text() try { + // eslint-disable-next-line @masknet/type-prefer-return-type-annotation return JSON.parse(text) as T } catch {