diff --git a/test/type/mutate.ts b/test/type/mutate.ts index 08b6c18c69..94da25412c 100644 --- a/test/type/mutate.ts +++ b/test/type/mutate.ts @@ -62,11 +62,18 @@ export function useMutatorTypes() { mutate(async () => '1') mutate(async () => '1', { populateCache: false }) + mutate(async () => 1, { + populateCache: (result: number) => `${result}` + }) // @ts-expect-error mutate(async () => 1) // @ts-expect-error mutate(async () => 1, { populateCache: false }) + // @ts-expect-error + mutate(async () => 1, { + populateCache: (result: number) => result + }) } export function useConfigMutate() {