Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typedconverter

Package Overview
Dependencies
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedconverter - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

4

lib/index.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc