From 1d316402062525fc12331e6e66ac042aa0e159eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Po=C5=9Bpiech?= Date: Sun, 21 Apr 2024 14:21:05 +0200 Subject: [PATCH] updated base form types --- packages/uniforms/src/BaseForm.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/uniforms/src/BaseForm.tsx b/packages/uniforms/src/BaseForm.tsx index 79df4f87b..b62c1ab81 100644 --- a/packages/uniforms/src/BaseForm.tsx +++ b/packages/uniforms/src/BaseForm.tsx @@ -26,7 +26,6 @@ export type BaseFormProps = { noValidate: boolean; onChange?: (key: string, value: unknown) => void; onSubmit: (model: Model) => void | Promise; - placeholder?: boolean; readOnly?: boolean; schema: Bridge; showInlineError?: boolean; @@ -175,8 +174,11 @@ export class BaseForm< getNativeFormProps(): { [key: string]: unknown; - onSubmit: BaseForm['onSubmit']; + children?: React.ReactNode; + id?: BaseFormProps['id']; key: string; + noValidate: BaseFormProps['noValidate']; + onSubmit: BaseForm['onSubmit']; } { const props = omit(this.props, [ 'autosave',