Skip to content

Commit

Permalink
[@mantine/form] Fix required transform value type in UseFormInput (#2816
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Florian Michaut committed Oct 27, 2022
1 parent 159e2d8 commit 6b5eade
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mantine-form/src/types.ts
Expand Up @@ -106,7 +106,10 @@ export type IsValid<Values> = <Field extends LooseKeys<Values>>(path?: Field) =>

export type _TransformValues<Values> = (values: Values) => unknown;

export interface UseFormInput<Values, TransformValues extends _TransformValues<Values>> {
export interface UseFormInput<
Values,
TransformValues extends _TransformValues<Values> = (values: Values) => Values
> {
initialValues?: Values;
initialErrors?: FormErrors;
initialTouched?: FormStatus;
Expand Down

0 comments on commit 6b5eade

Please sign in to comment.