From abf8dd3ea19fe83e6cd84bba11b917aa2049ad0e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 6 Oct 2024 07:37:04 +0100 Subject: [PATCH] chore: suppress type differences for nitro v2.10 --- modules/tauri/runtime/nitro.client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/tauri/runtime/nitro.client.ts b/modules/tauri/runtime/nitro.client.ts index f85ce95b..adbf07ba 100644 --- a/modules/tauri/runtime/nitro.client.ts +++ b/modules/tauri/runtime/nitro.client.ts @@ -55,6 +55,8 @@ 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 Nitro types are subtly different here in a future nitro version globalThis.$fetch = createFetch({ // @ts-expect-error slight differences in api fetch: localFetch,