Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 07d10cd

Browse files
authored
fix typescript definitions for setFieldsValidity and setFieldsE… (#1202)
fix typescript definitions for setFieldsValidity and setFieldsErrors
2 parents 5702897 + 12ca886 commit 07d10cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react-redux-form.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,15 +1043,15 @@ interface Actions {
10431043
* @param model The top level form model
10441044
* @param fieldsValidity An object where the keys are field paths and the value is validity object
10451045
*/
1046-
setFieldsValidity: (model: string | ModelGetterFn, fieldsValidity: FieldsObject<ValidityObject | boolean>) => FieldAction;
1046+
setFieldsValidity: (model: string | ModelGetterFn, fieldsValidity: FieldsObject<ValidityObject>) => FieldAction;
10471047

10481048
/**
10491049
* This action allows you to set the errors for multiple submodels of a model at the same time. Similar to setFieldsValidity but for errors
10501050
* @param model The top level form model
10511051
* @param fieldsErrors An object where the keys are field paths and the value is error object
10521052
* @param options { async: true } if the error is an error from async validation.
10531053
*/
1054-
setFieldsErrors: (model: string | ModelGetterFn, fieldsErrors: FieldsObject<ErrorsObject | boolean | string>, options?: SetErrorsOptions) => FieldAction;
1054+
setFieldsErrors: (model: string | ModelGetterFn, fieldsErrors: FieldsObject<ErrorsObject>, options?: SetErrorsOptions) => FieldAction;
10551055

10561056

10571057

0 commit comments

Comments
 (0)