Skip to content

Commit

Permalink
updated base form types
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech committed Apr 21, 2024
1 parent 49715f4 commit 1d31640
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/uniforms/src/BaseForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export type BaseFormProps<Model extends UnknownObject> = {
noValidate: boolean;
onChange?: (key: string, value: unknown) => void;
onSubmit: (model: Model) => void | Promise<unknown>;
placeholder?: boolean;
readOnly?: boolean;
schema: Bridge;
showInlineError?: boolean;
Expand Down Expand Up @@ -175,8 +174,11 @@ export class BaseForm<

getNativeFormProps(): {
[key: string]: unknown;
onSubmit: BaseForm<Model, Props, State>['onSubmit'];
children?: React.ReactNode;
id?: BaseFormProps<Model>['id'];
key: string;
noValidate: BaseFormProps<Model>['noValidate'];
onSubmit: BaseForm<Model, Props, State>['onSubmit'];
} {
const props = omit(this.props, [
'autosave',
Expand Down

0 comments on commit 1d31640

Please sign in to comment.