From c3133d0e69a48ed9fb66a82005f0948c588ce33a Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Tue, 12 Sep 2023 13:08:17 +0200 Subject: [PATCH] test: update tests, use matched types for mutate api (#2781) --- test/type/mutate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/type/mutate.ts b/test/type/mutate.ts index 020621cbf..08b6c18c6 100644 --- a/test/type/mutate.ts +++ b/test/type/mutate.ts @@ -61,12 +61,12 @@ export function useMutatorTypes() { const { mutate } = useSWR('') mutate(async () => '1') + mutate(async () => '1', { populateCache: false }) // @ts-expect-error mutate(async () => 1) - - // FIXME: this should work. - // mutate(async () => 1, { populateCache: false }) + // @ts-expect-error + mutate(async () => 1, { populateCache: false }) } export function useConfigMutate() {