From 2fb2d297fd5202a93bd8eaeab1dcd1263399d9db Mon Sep 17 00:00:00 2001 From: Vincent Link Date: Mon, 21 Aug 2023 15:10:42 +0200 Subject: [PATCH] fix: default to data type in keyed mutator --- _internal/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_internal/src/types.ts b/_internal/src/types.ts index 139c8f1a7..e49d8e05d 100644 --- a/_internal/src/types.ts +++ b/_internal/src/types.ts @@ -394,7 +394,7 @@ export interface ScopedMutator { * @typeParam Data - The type of the data related to the key * @typeParam MutationData - The type of the data returned by the mutator */ -export type KeyedMutator = ( +export type KeyedMutator = ( data?: | MutationData | Promise