Skip to content

Commit e222298

Browse files
authored
Merge pull request #34 from nullgr/release/1.3.6
Release/1.3.6
2 parents 2d65c14 + b7dceab commit e222298

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)