@hi-ui/type-assertion
Advanced tools
Comparing version 4.0.0-alpha.13 to 4.0.0-alpha.14
@@ -111,3 +111,11 @@ /** @LICENSE | ||
}; | ||
/** | ||
* Assert is positive number | ||
*/ | ||
var isPlus = function isPlus(arg) { | ||
return typeof arg === 'number' && Math.sign(arg) === 1; | ||
}; | ||
exports.isArray = isArray; | ||
@@ -121,2 +129,3 @@ exports.isArrayNonEmpty = isArrayNonEmpty; | ||
exports.isObjectLike = isObjectLike; | ||
exports.isPlus = isPlus; | ||
exports.isPromise = isPromise; | ||
@@ -123,0 +132,0 @@ exports.isString = isString; |
@@ -106,4 +106,12 @@ import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
}; | ||
/** | ||
* Assert is positive number | ||
*/ | ||
export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isObjectLike, isPromise, isString, isUndef, isUndefined }; | ||
var isPlus = function isPlus(arg) { | ||
return typeof arg === 'number' && Math.sign(arg) === 1; | ||
}; | ||
export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isObjectLike, isPlus, isPromise, isString, isUndef, isUndefined }; | ||
//# sourceMappingURL=index.js.map |
@@ -53,1 +53,5 @@ export declare type Dict<T = any> = Record<string, T>; | ||
export declare const isString: (arg: unknown) => arg is string; | ||
/** | ||
* Assert is positive number | ||
*/ | ||
export declare const isPlus: (arg: unknown) => arg is number; |
{ | ||
"name": "@hi-ui/type-assertion", | ||
"version": "4.0.0-alpha.13", | ||
"version": "4.0.0-alpha.14", | ||
"description": "A sub-package for @hi-ui/utils.", | ||
@@ -48,3 +48,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "4fe4855aa7b3180a4e30ffa0972ac39a04947b4b" | ||
"gitHead": "fa21b165e493ba58f5b1834d050e4af188b6d946" | ||
} |
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
12304
252