chore: fix lint warning

This commit is contained in:
藍+85CD committed 2025-04-25 16:45:04 +08:00
1 parent 69f5d884da
commit b7bb25ce7d
1 file changed
+2 -1
+2 -1
View File
@@ -1,11 +1,12 @@
import { responseCatch } from './response-catch'
export const responseJSON = async <T>(res: Response) =>
export const responseJSON = async <T>(res: Response): Promise<T> =>
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 {