validate-promise
Advanced tools
Comparing version 3.3.2 to 3.3.3
@@ -19,3 +19,3 @@ import after from './rules/after'; | ||
export declare type MsgFunc<T extends object, A = any> = (value: string, row: T, arg?: A | ArgFunc<T, A>) => string; | ||
export declare type ValidationPromise<T extends object = object, A = any> = (value: string | string[] | Record<string, number>, row: T, msg: MsgFunc<T, A>, arg?: A | ArgFunc<T, A>) => Promise<string | void>; | ||
export declare type ValidationPromise<T extends object = object, A = any> = (value: string | string[] | Record<string, number> | number | Date, row: T, msg: MsgFunc<T, A>, arg?: A | ArgFunc<T, A>) => Promise<string | void>; | ||
interface IAPromise<T extends object = object> { | ||
@@ -22,0 +22,0 @@ rule: ValidationPromise<T>; |
{ | ||
"name": "validate-promise", | ||
"version": "3.3.2", | ||
"version": "3.3.3", | ||
"description": "Promised based validation library", | ||
@@ -59,2 +59,2 @@ "main": "dist/index.js", | ||
} | ||
} | ||
} |
@@ -35,3 +35,3 @@ import get from 'lodash.get'; | ||
export type ValidationPromise<T extends object = object, A = any> = ( | ||
value: string | string[] | Record<string, number>, | ||
value: string | string[] | Record<string, number> | number | Date, | ||
row: T, | ||
@@ -38,0 +38,0 @@ msg: MsgFunc<T, A>, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72332
73
2347