Skip to content

Commit

Permalink
fix: default to data type in keyed mutator
Browse files Browse the repository at this point in the history
  • Loading branch information
linkvt committed Aug 21, 2023
1 parent e510955 commit 2fb2d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _internal/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Data> = <MutationData>(
export type KeyedMutator<Data> = <MutationData = Data>(
data?:
| MutationData
| Promise<MutationData | undefined>
Expand Down

0 comments on commit 2fb2d29

Please sign in to comment.