File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
136136interface 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 ;
You can’t perform that action at this time.
0 commit comments