chore: add `ofetch` to `typescript.hoist` (#2693)

Co-authored-by: Daniel Roe <daniel@roe.dev>
pull/2704/head
Joaquín Sánchez 2024-03-19 13:56:14 +01:00 zatwierdzone przez GitHub
rodzic bd4cd02b2b
commit 9251ec496b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 6 usunięć

Wyświetl plik

@ -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 },
})