Skip to content

Commit

Permalink
fix: Prevent multiple positional args on mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehesp committed Jan 7, 2025
1 parent 7b6f06e commit 2ae2aab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react/src/data-connect/useDataConnectMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export type useDataConnectMutationOptions<
export function useDataConnectMutation<
Fn extends
| (() => MutationRef<any, any>)
| ((vars: any) => MutationRef<any, any>)
| ((...args: any[]) => MutationRef<any, any>),
| ((vars: any) => MutationRef<any, any>),
Data = ReturnType<
Fn extends (() => MutationRef<infer D, any>)
? () => MutationRef<D, any>
Expand Down

0 comments on commit 2ae2aab

Please sign in to comment.