You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@vcsuite/check

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vcsuite/check - npm Package Compare versions

Comparing version

to
2.1.2

6

dist/index.d.ts

@@ -16,3 +16,7 @@ declare const matcherSymbol: unique symbol;

[K in keyof U]: PatternMatch<T[K]>;
} : T extends typeof String ? string : T extends typeof Number ? number : T extends typeof Boolean ? boolean : T extends typeof Object ? object : T extends typeof Function ? Function : T extends undefined | null | string | number | boolean ? T : T extends new (...args: any[]) => infer U ? U : T extends typeof Integer ? number : T extends typeof NonEmptyString ? string : unknown;
} : T extends typeof String ? string : T extends typeof Number ? number : T extends typeof Boolean ? boolean : T extends typeof Object ? object : T extends typeof Function ? Function : T extends undefined | null | string | number | boolean ? T : T extends new (...args: any[]) => infer U ? U : T extends {
[key: string]: Pattern;
} ? {
[K in keyof T]: PatternMatch<T[K]>;
} : T extends typeof Integer ? number : T extends typeof NonEmptyString ? string : unknown;
export declare function is<T extends Pattern>(value: unknown, pattern: T): value is PatternMatch<T>;

@@ -19,0 +23,0 @@ type ErrorClass = new (message: string) => Error;

2

package.json
{
"name": "@vcsuite/check",
"version": "2.1.1",
"version": "2.1.2",
"description": "check utilities for input type safety",

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