From f950fe0d8af0048130c91f46ea0fd31e4563b8ed Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 20 Oct 2021 10:43:08 +0100 Subject: [PATCH] fix(nuxt3): fix type inference for `FetchResult` (#1269) --- packages/nuxt3/src/app/composables/fetch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt3/src/app/composables/fetch.ts b/packages/nuxt3/src/app/composables/fetch.ts index 1430ddb28b..ba8777be36 100644 --- a/packages/nuxt3/src/app/composables/fetch.ts +++ b/packages/nuxt3/src/app/composables/fetch.ts @@ -1,11 +1,11 @@ -import type { FetchOptions } from 'ohmyfetch' +import type { FetchOptions, FetchRequest } from 'ohmyfetch' import type { $Fetch } from '@nuxt/nitro' import { murmurHashV3 } from 'murmurhash-es' import type { AsyncDataOptions, _Transform, KeyOfRes } from './asyncData' import { useAsyncData } from './asyncData' export type Awaited = T extends Promise ? U : T -export type FetchResult = Awaited>> +export type FetchResult = Awaited>> export type UseFetchOptions< DataT,