@hi-ui/type-assertion
Advanced tools
Comparing version 4.0.0-alpha.8 to 4.0.0-alpha.9
@@ -87,2 +87,11 @@ /** @LICENSE | ||
var toString = Object.prototype.toString; | ||
/** | ||
* Assert is string | ||
*/ | ||
var isString = function isString(arg) { | ||
return toString.call(arg) === '[object String]'; | ||
}; | ||
exports.isArray = isArray; | ||
@@ -96,2 +105,3 @@ exports.isArrayNonEmpty = isArrayNonEmpty; | ||
exports.isPromise = isPromise; | ||
exports.isString = isString; | ||
//# sourceMappingURL=index.js.map |
@@ -82,3 +82,12 @@ import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isPromise }; | ||
var toString = Object.prototype.toString; | ||
/** | ||
* Assert is string | ||
*/ | ||
var isString = function isString(arg) { | ||
return toString.call(arg) === '[object String]'; | ||
}; | ||
export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isPromise, isString }; | ||
//# sourceMappingURL=index.js.map |
@@ -35,1 +35,5 @@ export declare type Dict<T = any> = Record<string, T>; | ||
export declare const isFunction: <T extends Function = Function>(arg: any) => arg is T; | ||
/** | ||
* Assert is string | ||
*/ | ||
export declare const isString: (arg: unknown) => arg is string; |
{ | ||
"name": "@hi-ui/type-assertion", | ||
"version": "4.0.0-alpha.8", | ||
"version": "4.0.0-alpha.9", | ||
"description": "A sub-package for @hi-ui/utils.", | ||
@@ -46,5 +46,5 @@ "keywords": [], | ||
"devDependencies": { | ||
"@hi-ui/hi-build": "^4.0.0-alpha.2" | ||
"@hi-ui/hi-build": "^4.0.0-alpha.3" | ||
}, | ||
"gitHead": "f067ec47048ec498d30cdc0333c598f963a172d1" | ||
"gitHead": "689ef7c6b19089bf0aa818978c70da1e27714e6b" | ||
} |
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
10514
194