typedescriptor
Advanced tools
Comparing version 2.0.1 to 2.0.4
@@ -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": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
12616
0