model-state-validation
Advanced tools
Comparing version
export * from "./Errors"; | ||
export * from "./ModelState"; | ||
export * from "./ModelStateError"; | ||
export * from "./typeGuards"; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,4 @@ | ||
export {}; | ||
import { IValidator } from "./IValidator"; | ||
import { IValidatorAsync } from "./IValidatorAsync"; | ||
export declare function isValidator(validator: any): validator is IValidator<any>; | ||
export declare function isValidatorAsync(validator: any): validator is IValidatorAsync<any>; |
@@ -1,7 +0,7 @@ | ||
function isValidator(validator) { | ||
export function isValidator(validator) { | ||
return typeof validator.validate === "function"; | ||
} | ||
function isValidatorAsync(validator) { | ||
export function isValidatorAsync(validator) { | ||
return typeof validator.validateAsync === "function"; | ||
} | ||
//# sourceMappingURL=typeGuards.js.map |
{ | ||
"name": "model-state-validation", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10387
3.38%121
3.42%