Skip to content

Commit 992f2bb

Browse files
committed
chore: Fix ts definition
1 parent 21614f2 commit 992f2bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interface.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ export interface ValidateOptions {
126126
recursive?: boolean;
127127
}
128128

129-
export type InternalValidateFields = (
129+
export type InternalValidateFields<Values = any> = (
130130
nameList?: NamePath[],
131131
options?: ValidateOptions,
132-
) => Promise<Store>;
133-
export type ValidateFields = (nameList?: NamePath[]) => Promise<Store>;
132+
) => Promise<Values>;
133+
export type ValidateFields<Values = any> = (nameList?: NamePath[]) => Promise<Values>;
134134

135135
// >>>>>> Info
136136
interface ValueUpdateInfo {
@@ -217,7 +217,7 @@ export interface FormInstance<Values = any> {
217217
resetFields: (fields?: NamePath[]) => void;
218218
setFields: (fields: FieldData[]) => void;
219219
setFieldsValue: (value: RecursivePartial<Values>) => void;
220-
validateFields: ValidateFields;
220+
validateFields: ValidateFields<Values>;
221221

222222
// New API
223223
submit: () => void;

0 commit comments

Comments
 (0)