Browse Source
fix: set type of FormActionType.setFieldsValue same as type of setFieldsValue in useFormEvents (#2630)
pull/2637/head
zty
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/components/Form/src/types/form.ts
|
|
|
@ -26,7 +26,7 @@ export interface ButtonProps extends AntdButtonProps { |
|
|
|
|
|
|
|
export interface FormActionType { |
|
|
|
submit: () => Promise<void>; |
|
|
|
setFieldsValue: <T>(values: T) => Promise<void>; |
|
|
|
setFieldsValue: (values: Recordable) => Promise<void>; |
|
|
|
resetFields: () => Promise<void>; |
|
|
|
getFieldsValue: () => Recordable; |
|
|
|
clearValidate: (name?: string | string[]) => Promise<void>; |
|
|
|
|