validate-promise
Advanced tools
Comparing version 3.8.1 to 3.8.2
@@ -25,3 +25,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> | number | Date, row: T, msg: MsgFunc<T, A>, arg?: A | ArgFunc<T, A>) => Promise<string | void>; | ||
export declare type ValidationPromise<T extends object = object, A = any, V = any> = (value: V, row: T, msg: MsgFunc<T, A>, arg?: A | ArgFunc<T, A>) => Promise<string | void>; | ||
interface IAPromise<T extends object = object> { | ||
@@ -28,0 +28,0 @@ rule: ValidationPromise<T>; |
{ | ||
"name": "validate-promise", | ||
"version": "3.8.1", | ||
"version": "3.8.2", | ||
"description": "Promised based validation library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -40,4 +40,4 @@ import get from 'lodash.get'; | ||
export type ValidationPromise<T extends object = object, A = any> = ( | ||
value: string | string[] | Record<string, number> | number | Date, | ||
export type ValidationPromise<T extends object = object, A = any, V = string | string[] | Record<string, number> | number | Date> = ( | ||
value: V, | ||
row: T, | ||
@@ -44,0 +44,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
97684
99
3103