Skip to content

Commit c3133d0

Browse files
authored
test: update tests, use matched types for mutate api (#2781)
1 parent ed0453a commit c3133d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/type/mutate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ export function useMutatorTypes() {
6161
const { mutate } = useSWR<string>('')
6262

6363
mutate(async () => '1')
64+
mutate(async () => '1', { populateCache: false })
6465

6566
// @ts-expect-error
6667
mutate(async () => 1)
67-
68-
// FIXME: this should work.
69-
// mutate(async () => 1, { populateCache: false })
68+
// @ts-expect-error
69+
mutate(async () => 1, { populateCache: false })
7070
}
7171

7272
export function useConfigMutate() {

0 commit comments

Comments
 (0)