typedconverter
Advanced tools
Comparing version 2.3.1 to 2.3.2
import { Opt, val } from "./decorators"; | ||
import { VisitorExtension, VisitorInvocation } from "./invocation"; | ||
import { Class } from "./types"; | ||
import { partial, PartialValidator, Validator, validatorVisitor, ValidatorDecorator } from "./validation"; | ||
import { partial, PartialValidator, Validator, validatorVisitor, ValidatorDecorator, RequiredValidator } from "./validation"; | ||
import { Result, ResultMessages } from "./visitor"; | ||
@@ -41,2 +41,2 @@ interface Option<T = any> { | ||
declare function validate<T>(value: any, option: Option<T> | T): T extends Class<infer R>[] ? Result<R[]> : T extends Class<infer R_1> ? Result<R_1> : Result<any>; | ||
export { convert, Option, VisitorExtension, VisitorInvocation, Result, ResultMessages, partial, validatorVisitor, Validator, PartialValidator, val, Opt, validate, createValidator, ValidatorDecorator }; | ||
export { convert, Option, VisitorExtension, VisitorInvocation, Result, ResultMessages, partial, validatorVisitor, Validator, PartialValidator, val, Opt, validate, createValidator, ValidatorDecorator, RequiredValidator }; |
@@ -10,2 +10,3 @@ "use strict"; | ||
exports.validatorVisitor = validation_1.validatorVisitor; | ||
exports.RequiredValidator = validation_1.RequiredValidator; | ||
const visitor_1 = require("./visitor"); | ||
@@ -12,0 +13,0 @@ exports.Result = visitor_1.Result; |
{ | ||
"name": "typedconverter", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Convert object into classes match with TypeScript type annotation", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
47930
1020