Skip to content

Commit 0295fc8

Browse files
committed
feat: modify beforeFetch type
1 parent daddb71 commit 0295fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export interface Config<Result = unknown, Cond = object, AfterResult extends unk
5858
pollingWhenOffline?: boolean
5959
revalidateOnFocus?: boolean
6060
cacheProvider?: () => Cache<any>
61-
beforeFetch?: (conditions: Cond & ConditionsType, cancel: Fn) => ConditionsType
61+
beforeFetch?: (conditions: Cond, cancel: Fn) => Partial<Cond>
6262
afterFetch?: (data: Result) => AfterResult extends Result ? Result : AfterResult
6363
onFetchError?: (ctx: OnFetchErrorContext) => Promise<Partial<OnFetchErrorContext>> | Partial<OnFetchErrorContext>
6464
}

0 commit comments

Comments
 (0)