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
parent
commit
7bbb86249b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/Form/src/types/form.ts

2
src/components/Form/src/types/form.ts

@ -26,7 +26,7 @@ export interface ButtonProps extends AntdButtonProps {
export interface FormActionType { export interface FormActionType {
submit: () => Promise<void>; submit: () => Promise<void>;
setFieldsValue: <T>(values: T) => Promise<void>; setFieldsValue: (values: Recordable) => Promise<void>;
resetFields: () => Promise<void>; resetFields: () => Promise<void>;
getFieldsValue: () => Recordable; getFieldsValue: () => Recordable;
clearValidate: (name?: string | string[]) => Promise<void>; clearValidate: (name?: string | string[]) => Promise<void>;

Loading…
Cancel
Save