@antfu/utils
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -6,14 +6,6 @@ /** | ||
/** | ||
* Null or underfind whatever | ||
*/ | ||
declare type Nilable<T> = T | null | undefined; | ||
/** | ||
* Null or whatever | ||
*/ | ||
declare type Nullable<T> = T | null; | ||
declare type Nullable<T> = T | null | undefined; | ||
/** | ||
* Undefined or whatever | ||
*/ | ||
declare type Undefineable<T> = T | undefined; | ||
/** | ||
* Array, or not yet | ||
@@ -42,7 +34,7 @@ */ | ||
*/ | ||
declare function toArray<T>(array: Nullable<Arrayable<T>>): Array<T>; | ||
declare function toArray<T>(array?: Nullable<Arrayable<T>>): Array<T>; | ||
/** | ||
* Convert Arrayable<T> to Array<T> | ||
*/ | ||
declare function flattenArrayable<T>(array: Nullable<Arrayable<T | Array<T>>>): Array<T>; | ||
declare function flattenArrayable<T>(array?: Nullable<Arrayable<T | Array<T>>>): Array<T>; | ||
/** | ||
@@ -157,2 +149,2 @@ * Use rest arguments to merge arrays | ||
export { Arrayable, Awaitable, ElementOf, Fn, Nilable, Nullable, Undefineable, UnionToIntersection, assert, batchInvoke, clamp, flattenArrayable, invoke, isBoolean, isBrowser, isDef, isFunction, isKeyOf, isNumber, isObject, isString, isTruthy, isWindow, mergeArrayable, noNull, noop, notNullish, notUndefined, objectEntries, objectKeys, objectMap, partition, slash, sum, timestamp, toArray, toString }; | ||
export { Arrayable, Awaitable, ElementOf, Fn, Nullable, UnionToIntersection, assert, batchInvoke, clamp, flattenArrayable, invoke, isBoolean, isBrowser, isDef, isFunction, isKeyOf, isNumber, isObject, isString, isTruthy, isWindow, mergeArrayable, noNull, noop, notNullish, notUndefined, objectEntries, objectKeys, objectMap, partition, slash, sum, timestamp, toArray, toString }; |
{ | ||
"name": "@antfu/utils", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Opinionated collection of common JavaScript / TypeScript utils by @antfu", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
13139
337