Skip to content

Commit

Permalink
explicit typing
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jul 8, 2022
1 parent 08dc1c9 commit a2c73be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/type/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useSWRConfig, SWRConfig } from 'swr'
import { expectType } from './utils'

export function useTestCache() {
expectType<Map<string, State>>(useSWRConfig().cache)
expectType<Map<string, State<any, any>>>(useSWRConfig().cache)
}

export function useCustomSWRConfig() {
Expand Down

0 comments on commit a2c73be

Please sign in to comment.