From ab47c2f64e26f58d22f3f0cfae1d7e603738f78b Mon Sep 17 00:00:00 2001 From: guoyangzhen Date: Thu, 2 Apr 2026 12:59:57 +0800 Subject: [PATCH] fix: pass type parameter T to FetchOptions in $Fetch interface The generic type T on $Fetch methods was not being forwarded to FetchOptions, causing onResponse callback to always receive FetchResponse instead of FetchResponse. Fixes #559 --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 66a84faf..cd5444f8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,11 +5,11 @@ export interface $Fetch { ( request: FetchRequest, - options?: FetchOptions + options?: FetchOptions ): Promise>; raw( request: FetchRequest, - options?: FetchOptions + options?: FetchOptions ): Promise>>; native: Fetch; create(defaults: FetchOptions, globalOptions?: CreateFetchOptions): $Fetch;