@hi-ui/type-assertion
Advanced tools
Comparing version 4.0.0-alpha.9 to 4.0.0-alpha.11
@@ -18,5 +18,13 @@ /** @LICENSE | ||
/** | ||
* Assert is undefined | ||
*/ | ||
var isUndefined = function isUndefined(arg) { | ||
return arg === undefined; | ||
}; | ||
/** | ||
* Assert is Nullish | ||
*/ | ||
var isNullish = function isNullish(arg) { | ||
@@ -106,2 +114,3 @@ return arg === null || arg === undefined; | ||
exports.isString = isString; | ||
exports.isUndefined = isUndefined; | ||
//# sourceMappingURL=index.js.map |
@@ -14,4 +14,12 @@ import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
/** | ||
* Assert is undefined | ||
*/ | ||
var isUndefined = function isUndefined(arg) { | ||
return arg === undefined; | ||
}; | ||
/** | ||
* Assert is Nullish | ||
*/ | ||
var isNullish = function isNullish(arg) { | ||
@@ -92,3 +100,3 @@ return arg === null || arg === undefined; | ||
export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isPromise, isString }; | ||
export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isPromise, isString, isUndefined }; | ||
//# sourceMappingURL=index.js.map |
export declare type Dict<T = any> = Record<string, T>; | ||
export declare type Nullish = null | undefined | void; | ||
export declare type Undefined = undefined | void; | ||
export declare type Nullish = null | Undefined; | ||
/** | ||
* Assert is undefined | ||
*/ | ||
export declare const isUndefined: (arg: unknown) => arg is Undefined; | ||
/** | ||
* Assert is Nullish | ||
@@ -5,0 +10,0 @@ */ |
{ | ||
"name": "@hi-ui/type-assertion", | ||
"version": "4.0.0-alpha.9", | ||
"version": "4.0.0-alpha.11", | ||
"description": "A sub-package for @hi-ui/utils.", | ||
@@ -48,3 +48,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "689ef7c6b19089bf0aa818978c70da1e27714e6b" | ||
"gitHead": "734a594a67ed76aa6e36772532e67b53048f2dae" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
11096
212