@pawover/kit 0.0.0-beta.13 → 0.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +15 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -6
- package/dist/index.js.map +1 -1
- package/metadata.json +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ import { BigNumber, MathExpression, MathJsInstance, Matrix } from "mathjs";
|
|
|
7
7
|
* @param candidate 待构造项
|
|
8
8
|
* @param checkEmpty 是否检查 `undefined` 和 `null`
|
|
9
9
|
*/
|
|
10
|
-
declare function arrayCast<T>(candidate: T | T[], checkEmpty?:
|
|
10
|
+
declare function arrayCast<T>(candidate: T | T[] | null | undefined, checkEmpty?: true): NonNullable<T>[];
|
|
11
|
+
declare function arrayCast<T>(candidate: T | T[] | null | undefined, checkEmpty?: false): T[];
|
|
11
12
|
//#endregion
|
|
12
13
|
//#region src/utils/array/arrayCompete.d.ts
|
|
13
14
|
/**
|
|
@@ -122,6 +123,18 @@ declare function arrayReplace<T>(initialList: readonly T[], newItem: T, match: (
|
|
|
122
123
|
*/
|
|
123
124
|
declare function arraySplit<T>(initialList: readonly T[], size?: number): T[][];
|
|
124
125
|
//#endregion
|
|
126
|
+
//#region src/utils/array/arrayZip.d.ts
|
|
127
|
+
declare function arrayUnzip<T>(arrays: readonly (readonly T[])[]): T[][];
|
|
128
|
+
declare function arrayZip<T1, T2, T3, T4, T5>(array1: readonly T1[], array2: readonly T2[], array3: readonly T3[], array4: readonly T4[], array5: readonly T5[]): [T1, T2, T3, T4, T5][];
|
|
129
|
+
declare function arrayZip<T1, T2, T3, T4>(array1: readonly T1[], array2: readonly T2[], array3: readonly T3[], array4: readonly T4[]): [T1, T2, T3, T4][];
|
|
130
|
+
declare function arrayZip<T1, T2, T3>(array1: readonly T1[], array2: readonly T2[], array3: readonly T3[]): [T1, T2, T3][];
|
|
131
|
+
declare function arrayZip<T1, T2>(array1: readonly T1[], array2: readonly T2[]): [T1, T2][];
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/utils/array/arrayZipToObject.d.ts
|
|
134
|
+
declare function arrayZipToObject<const K$1 extends PropertyKey, const V$1>(keys: readonly K$1[], array: readonly V$1[]): Record<K$1, V$1>;
|
|
135
|
+
declare function arrayZipToObject<const K$1 extends PropertyKey, const V$1>(keys: readonly K$1[], match: ((key: K$1, index: number) => V$1)): Record<K$1, V$1>;
|
|
136
|
+
declare function arrayZipToObject<const K$1 extends PropertyKey, const V$1>(keys: readonly K$1[], value: V$1): Record<K$1, V$1>;
|
|
137
|
+
//#endregion
|
|
125
138
|
//#region src/utils/device/isMobile.d.ts
|
|
126
139
|
/**
|
|
127
140
|
* 检测当前设备是否为移动设备
|
|
@@ -3741,5 +3754,5 @@ declare function isWebSocket(value: unknown): value is WebSocket;
|
|
|
3741
3754
|
//#region src/utils/typeof/isWindow.d.ts
|
|
3742
3755
|
declare function isWindow(value: unknown): value is Window;
|
|
3743
3756
|
//#endregion
|
|
3744
|
-
export { arrayCast, arrayCompete, arrayCounting, arrayDifference, arrayFirst, arrayFork, arrayIntersection, arrayLast, arrayMerge, arrayPick, arrayReplace, arraySplit, cloneDeep, enumEntries, enumKeys, enumValues, getTimeZone, isAbortSignal, isArray, isAsyncFunction, isAsyncGeneratorFunction, isBigInt, isBlob, isBoolean, isClass, isDate, isEnumeration, isEqual, isError, isFalsy, isFalsyLike, isFile, isFunction, isGeneratorFunction, isISOMobile, isInfinity, isInfinityLike, isInteger, isIterable, isMap, isMobile, isNaN, isNegativeInteger, isNull, isNumber, isObject, isPositiveInteger, isPromise, isPromiseLike, isReadableStream, isRegExp, isSet, isString, isSymbol, isTablet, isTypedArray, isURLSearchParams, isUndefined, isWeakMap, isWeakSet, isWebSocket, isWindow, isWithinInterval, mapEntries, objectAssign, objectCrush, objectEntries, objectInvert, objectKeys, objectOmit, objectPick, objectValues, rowsToTree, stringInitialCase, stringReplace, stringTemplate, stringToJson, stringToNumber, stringToPosix, stringToValues, stringTrim, stringTruncate, to, toMathBignumber, toMathDecimal, toMathEvaluate, treeFilter, treeFind, treeForEach, treeMap, treeToRows };
|
|
3757
|
+
export { arrayCast, arrayCompete, arrayCounting, arrayDifference, arrayFirst, arrayFork, arrayIntersection, arrayLast, arrayMerge, arrayPick, arrayReplace, arraySplit, arrayUnzip, arrayZip, arrayZipToObject, cloneDeep, enumEntries, enumKeys, enumValues, getTimeZone, isAbortSignal, isArray, isAsyncFunction, isAsyncGeneratorFunction, isBigInt, isBlob, isBoolean, isClass, isDate, isEnumeration, isEqual, isError, isFalsy, isFalsyLike, isFile, isFunction, isGeneratorFunction, isISOMobile, isInfinity, isInfinityLike, isInteger, isIterable, isMap, isMobile, isNaN, isNegativeInteger, isNull, isNumber, isObject, isPositiveInteger, isPromise, isPromiseLike, isReadableStream, isRegExp, isSet, isString, isSymbol, isTablet, isTypedArray, isURLSearchParams, isUndefined, isWeakMap, isWeakSet, isWebSocket, isWindow, isWithinInterval, mapEntries, objectAssign, objectCrush, objectEntries, objectInvert, objectKeys, objectOmit, objectPick, objectValues, rowsToTree, stringInitialCase, stringReplace, stringTemplate, stringToJson, stringToNumber, stringToPosix, stringToValues, stringTrim, stringTruncate, to, toMathBignumber, toMathDecimal, toMathEvaluate, treeFilter, treeFind, treeForEach, treeMap, treeToRows };
|
|
3745
3758
|
//# sourceMappingURL=index.d.ts.map
|