Comparing version 3.2.4 to 3.3.0
{ | ||
"name": "is-what", | ||
"version": "3.2.4", | ||
"version": "3.3.0", | ||
"description": "JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.", | ||
@@ -45,3 +45,3 @@ "main": "dist/index.cjs.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.5.4", | ||
"@babel/core": "^7.5.5", | ||
"@types/babel-core": "^6.25.6", | ||
@@ -48,0 +48,0 @@ "@types/jest": "^23.3.14", |
@@ -173,3 +173,3 @@ /** | ||
*/ | ||
export function isSymbol (payload: any): payload is Symbol { | ||
export function isSymbol (payload: any): payload is symbol { | ||
return (getType(payload) === 'Symbol') | ||
@@ -184,3 +184,3 @@ } | ||
*/ | ||
export function isPrimitive (payload: any): any { | ||
export function isPrimitive (payload: any): payload is boolean | null | undefined | number | string | symbol { | ||
return ( | ||
@@ -187,0 +187,0 @@ isBoolean(payload) || |
@@ -130,3 +130,3 @@ /** | ||
*/ | ||
export declare function isSymbol(payload: any): payload is Symbol; | ||
export declare function isSymbol(payload: any): payload is symbol; | ||
/** | ||
@@ -138,3 +138,3 @@ * Returns whether the payload is a primitive type (eg. Boolean | Null | Undefined | Number | String | Symbol) | ||
*/ | ||
export declare function isPrimitive(payload: any): any; | ||
export declare function isPrimitive(payload: any): payload is boolean | null | undefined | number | string | symbol; | ||
/** | ||
@@ -141,0 +141,0 @@ * Does a generic check to check that the given payload is of a given type. |
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
37926