Skip to content

Commit c026090

Browse files
committed
fix: uppercase method not working in useFetch functions
1 parent 7a2a9d1 commit c026090

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/runtime/fetchTypes.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,11 @@ export type UseFetch<
246246
>(
247247
request: Ref<Path> | Path | (() => Path),
248248
...opts: HasRequiredProperties<
249-
Headers & Query & PathParams & Body & GetMethodProp<MethodOptions, Method>
249+
Headers &
250+
Query &
251+
PathParams &
252+
Body &
253+
GetMethodProp<MethodOptions, MethodLiteral>
250254
> extends true
251255
? [
252256
opts: UntypedUseLazyFetchOptions<
@@ -261,7 +265,7 @@ export type UseFetch<
261265
Query &
262266
PathParams &
263267
Body &
264-
GetMethodProp<MethodOptions, Method>
268+
GetMethodProp<MethodOptions, MethodLiteral>
265269
>,
266270
]
267271
: [
@@ -277,7 +281,7 @@ export type UseFetch<
277281
Query &
278282
PathParams &
279283
Body &
280-
GetMethodProp<MethodOptions, Method>
284+
GetMethodProp<MethodOptions, MethodLiteral>
281285
>,
282286
]
283287
) => AsyncData<

0 commit comments

Comments
 (0)