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

Commit

Permalink
fix typescript definitions for setFieldsValidity and setFieldsE… (#1202)
Browse files Browse the repository at this point in the history
fix typescript definitions for setFieldsValidity and setFieldsErrors
  • Loading branch information
davidkpiano authored Jul 3, 2019
2 parents 5702897 + 12ca886 commit 07d10cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react-redux-form.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1043,15 +1043,15 @@ interface Actions {
* @param model The top level form model
* @param fieldsValidity An object where the keys are field paths and the value is validity object
*/
setFieldsValidity: (model: string | ModelGetterFn, fieldsValidity: FieldsObject<ValidityObject | boolean>) => FieldAction;
setFieldsValidity: (model: string | ModelGetterFn, fieldsValidity: FieldsObject<ValidityObject>) => FieldAction;

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



Expand Down

0 comments on commit 07d10cd

Please sign in to comment.