Skip to content

Commit

Permalink
Fix type incompatibility between validation and requiredValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall committed Oct 27, 2019
1 parent 9f04d39 commit 349cc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type IUpdateInputsWithError = (errors: any, invalidate?: boolean) => void

export type ValidationFunction = (values: Values, value: Value, extra?: any) => boolean;

export type Validation = string | true | ValidationFunction;
export type Validation = string | boolean | ValidationFunction;

export interface Validations {
[key: string]: Validation;
Expand Down

0 comments on commit 349cc14

Please sign in to comment.