1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 14:28:10 +09:00

chore: suppress type differences for nitro v2.10

This commit is contained in:
Daniel Roe 2024-10-06 07:37:04 +01:00
parent f5b62f3a59
commit abf8dd3ea1
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -55,6 +55,8 @@ export default defineNuxtPlugin(async () => {
const localCall = createCall(toNodeListener(h3App) as any) const localCall = createCall(toNodeListener(h3App) as any)
const localFetch = createLocalFetch(localCall, globalThis.fetch) 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({ globalThis.$fetch = createFetch({
// @ts-expect-error slight differences in api // @ts-expect-error slight differences in api
fetch: localFetch, fetch: localFetch,