Skip to content

Commit

Permalink
[@mantine/form] Fix incorrect required second argument in UseFormRetu…
Browse files Browse the repository at this point in the history
…rnType (#2758)
  • Loading branch information
Alf-Melmac committed Oct 22, 2022
1 parent 11ab1bf commit a1f5fbf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mantine-form/src/types.ts
Expand Up @@ -118,7 +118,10 @@ export interface UseFormInput<Values, TransformValues extends _TransformValues<V
validateInputOnBlur?: boolean | LooseKeys<Values>[];
}

export interface UseFormReturnType<Values, TransformValues extends _TransformValues<Values>> {
export interface UseFormReturnType<
Values,
TransformValues extends _TransformValues<Values> = (values: Values) => Values
> {
values: Values;
errors: FormErrors;
setValues: SetValues<Values>;
Expand Down

0 comments on commit a1f5fbf

Please sign in to comment.