File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ export default class Validator<State> {
3030 ) : ( ( prevState : Readonly < State > ) => State ) ;
3131
3232 validate (
33- stateUpdates ?: { [ key in keyof State ] : string } | null ,
33+ stateUpdates ?: { [ key in keyof State ] : any } | null ,
3434 showErrors ?: boolean
3535 ) : Readonly < State > ;
3636
37- getErrors ( state : State ) : { [ key in keyof State ] : string } ;
37+ getErrors ( state : State ) : { [ key in keyof State ] : any } ;
3838
3939 isFormValid ( state : State ) : boolean ;
4040
Original file line number Diff line number Diff line change 11{
22 "name" : " react-validation-utils" ,
3- "version" : " 1.3.5 " ,
3+ "version" : " 1.3.6 " ,
44 "description" : " Validate react form components, based on their state" ,
55 "main" : " build/index.js" ,
66 "types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ export default class Validator<State> {
3030 ) : ( ( prevState : Readonly < State > ) => State ) ;
3131
3232 validate (
33- stateUpdates ?: { [ key in keyof State ] : string } | null ,
33+ stateUpdates ?: { [ key in keyof State ] : any } | null ,
3434 showErrors ?: boolean
3535 ) : Readonly < State > ;
3636
37- getErrors ( state : State ) : { [ key in keyof State ] : string } ;
37+ getErrors ( state : State ) : { [ key in keyof State ] : any } ;
3838
3939 isFormValid ( state : State ) : boolean ;
4040
You can’t perform that action at this time.
0 commit comments