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

@badrap/valita

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@badrap/valita - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

12

dist/types/index.d.ts

@@ -101,15 +101,15 @@ declare type PrettyIntersection<V> = Extract<{

}
declare class StringType extends Type<number> {
declare class StringType extends Type<string> {
readonly name = "string";
genFunc(): Func<number>;
genFunc(): Func<string>;
toTerminals(into: TerminalType[]): void;
}
declare class BigIntType extends Type<number> {
declare class BigIntType extends Type<bigint> {
readonly name = "bigint";
genFunc(): Func<number>;
genFunc(): Func<bigint>;
toTerminals(into: TerminalType[]): void;
}
declare class BooleanType extends Type<number> {
declare class BooleanType extends Type<boolean> {
readonly name = "boolean";
genFunc(): Func<number>;
genFunc(): Func<boolean>;
toTerminals(into: TerminalType[]): void;

@@ -116,0 +116,0 @@ }

{
"name": "@badrap/valita",
"version": "0.0.4",
"version": "0.0.5",
"description": "A validation & parsing library for TypeScript",

@@ -5,0 +5,0 @@ "main": "./dist/main/index.js",

@@ -599,5 +599,5 @@ // This is magic that turns object intersections to nicer-looking types.

}
class StringType extends Type<number> {
class StringType extends Type<string> {
readonly name = "string";
genFunc(): Func<number> {
genFunc(): Func<string> {
const issue: Issue = { code: "invalid_type", expected: ["string"] };

@@ -610,5 +610,5 @@ return (v, _mode) => (typeof v === "string" ? true : issue);

}
class BigIntType extends Type<number> {
class BigIntType extends Type<bigint> {
readonly name = "bigint";
genFunc(): Func<number> {
genFunc(): Func<bigint> {
const issue: Issue = { code: "invalid_type", expected: ["bigint"] };

@@ -621,5 +621,5 @@ return (v, _mode) => (typeof v === "bigint" ? true : issue);

}
class BooleanType extends Type<number> {
class BooleanType extends Type<boolean> {
readonly name = "boolean";
genFunc(): Func<number> {
genFunc(): Func<boolean> {
const issue: Issue = { code: "invalid_type", expected: ["boolean"] };

@@ -626,0 +626,0 @@ return (v, _mode) => (typeof v === "boolean" ? true : issue);

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