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

typedescriptor

Package Overview
Dependencies
Maintainers
6
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedescriptor - npm Package Compare versions

Comparing version 2.0.1 to 2.0.4

4

build/lib/TypeDescriptor.d.ts

@@ -18,4 +18,4 @@ declare class TypeDescriptor {

static isValueType(value: any): value is boolean | number | null | string | undefined;
static isReferenceType(value: any): value is [] | Function | object | symbol;
static isArray(value: any): value is [];
static isReferenceType(value: any): value is any[] | Function | object | symbol;
static isArray(value: any): value is any[];
static isBoolean(value: any): value is boolean;

@@ -22,0 +22,0 @@ static isFunction(value: any): value is Function;

@@ -85,7 +85,7 @@ const valueTypes = [ 'boolean', 'number', 'null', 'string', 'undefined' ];

public static isReferenceType (value: any): value is [] | Function | object | symbol {
public static isReferenceType (value: any): value is any[] | Function | object | symbol {
return referenceTypes.includes(TypeDescriptor.of(value));
}
public static isArray (value: any): value is [] {
public static isArray (value: any): value is any[] {
return TypeDescriptor.of(value) === 'array';

@@ -92,0 +92,0 @@ }

{
"name": "typedescriptor",
"version": "2.0.1",
"version": "2.0.4",
"description": "typedescriptor identifies and describes types.",

@@ -19,4 +19,4 @@ "contributors": [

"devDependencies": {
"assertthat": "4.0.1",
"roboter": "7.1.5"
"assertthat": "4.0.2",
"roboter": "7.5.0"
},

@@ -23,0 +23,0 @@ "repository": {

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