Skip to content

Commit

Permalink
Fix type on Form onSubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl committed Apr 12, 2024
1 parent 73d1cf0 commit e260260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui-informed/src/form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface FormProps<T>
disabled?: boolean;
readOnly?: boolean;
loading?: boolean;
onSubmit?: (formState: TypedFormState<T>) => Promise<unknown>;
onSubmit?: (formState: TypedFormState<T>) => Promise<unknown> | void;
disableDefaultToast?: boolean;
zodSchema?: ZodObject<ZodRawShape>;
}
Expand Down

0 comments on commit e260260

Please sign in to comment.