diff --git a/src/interfaces.ts b/src/interfaces.ts index 20dba75a..37e39d49 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -14,7 +14,7 @@ export type ValidationError = string | React.ReactNode; export type ValidationFunction = (values: Values, value: V, extra?: any) => boolean | ValidationError; -export type Validation = string | boolean | ValidationFunction; +export type Validation = any | ValidationFunction; export type Validations = ValidationsStructure | string | object; export interface ValidationsStructure {