From 9251ec496b5b4c0244f14edafc4af8b4c0ae797f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Tue, 19 Mar 2024 13:56:14 +0100 Subject: [PATCH] chore: add `ofetch` to `typescript.hoist` (#2693) Co-authored-by: Daniel Roe --- modules/tauri/runtime/nitro.client.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/tauri/runtime/nitro.client.ts b/modules/tauri/runtime/nitro.client.ts index c9dc025e..affedc06 100644 --- a/modules/tauri/runtime/nitro.client.ts +++ b/modules/tauri/runtime/nitro.client.ts @@ -55,15 +55,10 @@ export default defineNuxtPlugin(async () => { const localCall = createCall(toNodeListener(h3App) as any) const localFetch = createLocalFetch(localCall, globalThis.fetch) - // eslint-disable-next-line ts/prefer-ts-expect-error - // @ts-ignore error TS2321: Excessive stack depth comparing types globalThis.$fetch = createFetch({ - // eslint-disable-next-line ts/prefer-ts-expect-error - // @ts-ignore slight differences in api + // @ts-expect-error slight differences in api fetch: localFetch, Headers, - // eslint-disable-next-line ts/prefer-ts-expect-error - // @ts-ignore error TS2321: Excessive stack depth comparing types defaults: { baseURL: config.app.baseURL }, })