diff --git a/src/types.ts b/src/types.ts index ab3f8a4..5fe47d5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,7 +18,7 @@ export type ValidCallbackType = ( value: V, data?: D, filedName?: string | string[] -) => CheckResult | boolean; +) => CheckResult | boolean | undefined; export type PlainObject = any> = { [P in keyof T]: T; };