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 {
126
126
recursive ?: boolean ;
127
127
}
128
128
129
- export type InternalValidateFields = (
129
+ export type InternalValidateFields < Values = any > = (
130
130
nameList ?: NamePath [ ] ,
131
131
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 > ;
134
134
135
135
// >>>>>> Info
136
136
interface ValueUpdateInfo {
@@ -217,7 +217,7 @@ export interface FormInstance<Values = any> {
217
217
resetFields : ( fields ?: NamePath [ ] ) => void ;
218
218
setFields : ( fields : FieldData [ ] ) => void ;
219
219
setFieldsValue : ( value : RecursivePartial < Values > ) => void ;
220
- validateFields : ValidateFields ;
220
+ validateFields : ValidateFields < Values > ;
221
221
222
222
// New API
223
223
submit : ( ) => void ;
You can’t perform that action at this time.
0 commit comments