Skip to content

Commit 2b0f66b

Browse files
authored
fix type for onValuesChange changedValues (#760)
1 parent 0abb904 commit 2b0f66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export type ValuedNotifyInfo = NotifyInfo & {
204204
};
205205

206206
export interface Callbacks<Values = any> {
207-
onValuesChange?: (changedValues: any, values: Values) => void;
207+
onValuesChange?: (changedValues: Partial<Values>, values: Values) => void;
208208
onFieldsChange?: (changedFields: FieldData[], allFields: FieldData[]) => void;
209209
onFinish?: (values: Values) => void;
210210
onFinishFailed?: (errorInfo: ValidateErrorEntity<Values>) => void;

0 commit comments

Comments
 (0)