We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daddb71 commit 0295fc8Copy full SHA for 0295fc8
src/core/types.ts
@@ -58,7 +58,7 @@ export interface Config<Result = unknown, Cond = object, AfterResult extends unk
58
pollingWhenOffline?: boolean
59
revalidateOnFocus?: boolean
60
cacheProvider?: () => Cache<any>
61
- beforeFetch?: (conditions: Cond & ConditionsType, cancel: Fn) => ConditionsType
+ beforeFetch?: (conditions: Cond, cancel: Fn) => Partial<Cond>
62
afterFetch?: (data: Result) => AfterResult extends Result ? Result : AfterResult
63
onFetchError?: (ctx: OnFetchErrorContext) => Promise<Partial<OnFetchErrorContext>> | Partial<OnFetchErrorContext>
64
}
0 commit comments