@pawover/kit 0.0.0-beta.12 → 0.0.0-beta.14

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 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?: boolean): T[];
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
  /**
@@ -2056,6 +2057,15 @@ declare function toMathDecimal(mathJsInstance: MathJsInstance, value: unknown, p
2056
2057
  */
2057
2058
  declare function toMathEvaluate(mathJsInstance: MathJsInstance, expr: MathExpression | Matrix, scope?: Record<string, BigNumber>): string;
2058
2059
  //#endregion
2060
+ //#region src/utils/number/isWithinInterval.d.ts
2061
+ /**
2062
+ * 数字区间检查函数
2063
+ * @param interval 由两个数字组成的元组 [left, right]
2064
+ * @param includeLeft 是否包含左边界(默认 true)
2065
+ * @param includeRight 是否包含右边界(默认 false)
2066
+ */
2067
+ declare function isWithinInterval(input: number, interval: [number, number], includeLeft?: boolean, includeRight?: boolean): boolean;
2068
+ //#endregion
2059
2069
  //#region src/utils/object/cloneDeep.d.ts
2060
2070
  interface CloningStrategy {
2061
2071
  cloneMap: <K$1, V$1>(parent: Map<K$1, V$1>, track: (newParent: Map<K$1, V$1>) => Map<K$1, V$1>, clone: <T>(value: T) => T) => Map<K$1, V$1> | null;
@@ -3732,5 +3742,5 @@ declare function isWebSocket(value: unknown): value is WebSocket;
3732
3742
  //#region src/utils/typeof/isWindow.d.ts
3733
3743
  declare function isWindow(value: unknown): value is Window;
3734
3744
  //#endregion
3735
- 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, 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
+ 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 };
3736
3746
  //# sourceMappingURL=index.d.ts.map