Skip to content

Commit 7bbb862

Browse files
authored
fix: set type of FormActionType.setFieldsValue same as type of setFieldsValue in useFormEvents (vbenjs#2630)
1 parent b0a45d4 commit 7bbb862

File tree

1 file changed

+1
-1
lines changed
  • src/components/Form/src/types

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface ButtonProps extends AntdButtonProps {
2626

2727
export interface FormActionType {
2828
submit: () => Promise<void>;
29-
setFieldsValue: <T>(values: T) => Promise<void>;
29+
setFieldsValue: (values: Recordable) => Promise<void>;
3030
resetFields: () => Promise<void>;
3131
getFieldsValue: () => Recordable;
3232
clearValidate: (name?: string | string[]) => Promise<void>;

0 commit comments

Comments
 (0)