diff --git a/src/index/use-swr.ts b/src/index/use-swr.ts index 7edcdcf4b..7250150fd 100644 --- a/src/index/use-swr.ts +++ b/src/index/use-swr.ts @@ -595,7 +595,7 @@ export const useSWRHandler = ( // Similar to the global mutate but bound to the current cache and key. // `cache` isn't allowed to change during the lifecycle. - const boundMutate: SWRResponse['mutate'] = useCallback( + const boundMutate = useCallback['mutate']>( // Use callback to make sure `keyRef.current` returns latest result every time (...args: any[]) => { return internalMutate(cache, keyRef.current, ...args)