From 5d874f81ea2e81465b01d35bb29adb1fac5bc928 Mon Sep 17 00:00:00 2001 From: Clark Tomlinson Date: Thu, 3 Mar 2022 18:00:59 -0500 Subject: [PATCH] Update Validation type Update Validation type for custom added validators that leverage the extra argument --- src/interfaces.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {