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 {