@uform/validator
Advanced tools
Comparing version 1.0.0-beta.6 to 1.0.0-rc.0
@@ -44,3 +44,3 @@ "use strict"; | ||
for (var i = 0; i < value.length; i++) { | ||
if (!isValidateEmpty(value[i])) | ||
if (value[i] !== undefined) | ||
return false; | ||
@@ -47,0 +47,0 @@ } |
@@ -37,3 +37,3 @@ import { FormPathPattern } from '@uform/shared'; | ||
export declare type ValidatePatternRules = InternalFormats | CustomValidator | ValidateDescription | ValidateArrayRules; | ||
export declare type CustomValidator = (value: any, rescription?: ValidateDescription) => ValidateResponse; | ||
export declare type CustomValidator = (value: any, description?: ValidateDescription) => ValidateResponse; | ||
export declare type SyncValidateResponse = null | string | boolean | { | ||
@@ -40,0 +40,0 @@ type?: 'error' | 'warning'; |
{ | ||
"name": "@uform/validator", | ||
"version": "1.0.0-beta.6", | ||
"version": "1.0.0-rc.0", | ||
"license": "MIT", | ||
@@ -28,3 +28,3 @@ "main": "lib", | ||
"dependencies": { | ||
"@uform/shared": "^1.0.0-beta.6" | ||
"@uform/shared": "^1.0.0-rc.0" | ||
}, | ||
@@ -34,3 +34,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "3426348f0fc6f0b3cc32635b393487243d6a3bf0" | ||
"gitHead": "d66cee79ee61c227f5beaac446b83c37b143ee42" | ||
} |
@@ -6,5 +6,5 @@ import { getMessage } from './message' | ||
isStr, | ||
isArr, | ||
isFn, | ||
toArr, | ||
isArr, | ||
isBool | ||
@@ -16,3 +16,3 @@ } from '@uform/shared' | ||
for (let i = 0; i < value.length; i++) { | ||
if (!isValidateEmpty(value[i])) return false | ||
if (value[i] !== undefined) return false | ||
} | ||
@@ -19,0 +19,0 @@ return true |
@@ -70,3 +70,3 @@ import { FormPathPattern } from '@uform/shared' | ||
value: any, | ||
rescription?: ValidateDescription | ||
description?: ValidateDescription | ||
) => ValidateResponse | ||
@@ -73,0 +73,0 @@ |
57586
Updated@uform/shared@^1.0.0-rc.0