@pawover/kit 0.0.0-beta.42 → 0.0.0-beta.44

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.
Files changed (45) hide show
  1. package/dist/enums.d.ts +1 -1
  2. package/dist/enums.js +144 -2
  3. package/dist/enums.js.map +1 -0
  4. package/dist/{except-C_xUtgFe.d.ts → except-6l9Qdmn1.d.ts} +10 -20
  5. package/dist/except-6l9Qdmn1.d.ts.map +1 -0
  6. package/dist/hooks-alova.d.ts +4 -4
  7. package/dist/hooks-alova.d.ts.map +1 -1
  8. package/dist/hooks-alova.js +1 -4
  9. package/dist/hooks-alova.js.map +1 -1
  10. package/dist/hooks-react.d.ts +2 -3
  11. package/dist/hooks-react.d.ts.map +1 -1
  12. package/dist/hooks-react.js +5 -11
  13. package/dist/hooks-react.js.map +1 -1
  14. package/dist/{index-DBPmnr4a.d.ts → index-DsR_kNCf.d.ts} +3 -6
  15. package/dist/index-DsR_kNCf.d.ts.map +1 -0
  16. package/dist/index-JKtXbRi8.d.ts +149 -0
  17. package/dist/index-JKtXbRi8.d.ts.map +1 -0
  18. package/dist/index.d.ts +93 -95
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +2 -3
  21. package/dist/patches-fetchEventSource.d.ts +2 -2
  22. package/dist/patches-fetchEventSource.d.ts.map +1 -1
  23. package/dist/patches-fetchEventSource.js +2 -4
  24. package/dist/patches-fetchEventSource.js.map +1 -1
  25. package/dist/{utils-adQi5T1g.js → utils-D8Hu8Q5K.js} +364 -426
  26. package/dist/utils-D8Hu8Q5K.js.map +1 -0
  27. package/dist/{value-of-DPr10cdW.d.ts → value-of-Dz22arsm.d.ts} +1 -1
  28. package/dist/value-of-Dz22arsm.d.ts.map +1 -0
  29. package/dist/vite.d.ts +0 -1
  30. package/dist/vite.d.ts.map +1 -1
  31. package/dist/vite.js +2 -2
  32. package/dist/vite.js.map +1 -1
  33. package/dist/zod.d.ts.map +1 -1
  34. package/dist/zod.js +31 -69
  35. package/dist/zod.js.map +1 -1
  36. package/metadata.json +1 -3
  37. package/package.json +12 -13
  38. package/dist/enums-BL6w5-mS.js +0 -148
  39. package/dist/enums-BL6w5-mS.js.map +0 -1
  40. package/dist/except-C_xUtgFe.d.ts.map +0 -1
  41. package/dist/index-CN5K25yO.d.ts +0 -212
  42. package/dist/index-CN5K25yO.d.ts.map +0 -1
  43. package/dist/index-DBPmnr4a.d.ts.map +0 -1
  44. package/dist/utils-adQi5T1g.js.map +0 -1
  45. package/dist/value-of-DPr10cdW.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { a as IsEqual, c as IsExactOptionalPropertyTypesEnabled, d as If, f as IsNever, h as UnionToIntersection, i as HomomorphicPick, l as Not, m as IsAny, n as ApplyDefaultOptions, o as Simplify, p as OptionalKeysOf, r as CollapseLiterals, s as IfNotAnyOrNever, t as Except, u as UnknownArray } from "./except-C_xUtgFe.js";
2
- import { t as ValueOf } from "./value-of-DPr10cdW.js";
3
- import { a as AnyObject, i as AnyGeneratorFunction, n as AnyAsyncGeneratorFunction, o as PlainObject, r as AnyFunction, s as TreeLike, t as AnyAsyncFunction } from "./index-DBPmnr4a.js";
4
- import { clone, cloneDeep, cloneDeepWith } from "lodash-es";
1
+ import { a as IsEqual, c as IsExactOptionalPropertyTypesEnabled, d as If, f as IsNever, h as UnionToIntersection, i as HomomorphicPick, l as Not, m as IsAny, n as ApplyDefaultOptions, o as Simplify, p as OptionalKeysOf, r as CollapseLiterals, s as IfNotAnyOrNever, t as Except, u as UnknownArray } from "./except-6l9Qdmn1.js";
2
+ import { t as ValueOf } from "./value-of-Dz22arsm.js";
3
+ import { a as AnyObject, i as AnyGeneratorFunction, n as AnyAsyncGeneratorFunction, o as PlainObject, r as AnyFunction, s as TreeLike, t as AnyAsyncFunction } from "./index-DsR_kNCf.js";
5
4
  import { BigNumber, MathExpression, MathJsInstance, Matrix } from "mathjs";
6
5
 
7
6
  //#region node_modules/.pnpm/type-fest@5.5.0/node_modules/type-fest/source/basic.d.ts
@@ -16,7 +15,6 @@ type Class<T, Arguments extends unknown[] = any[]> = {
16
15
  };
17
16
  //#endregion
18
17
  //#region node_modules/.pnpm/type-fest@5.5.0/node_modules/type-fest/source/internal/array.d.ts
19
-
20
18
  /**
21
19
  Transforms a tuple type by replacing it's rest element with a single element that has the same type as the rest element, while keeping all the non-rest elements intact.
22
20
 
@@ -50,8 +48,7 @@ type B = CollapseRestElement<[string?, string?, ...number[]]>;
50
48
  */
51
49
  type CollapseRestElement<TArray extends UnknownArray> = IfNotAnyOrNever<TArray, _CollapseRestElement<TArray>>;
52
50
  type _CollapseRestElement<TArray extends UnknownArray, ForwardAccumulator extends UnknownArray = [], BackwardAccumulator extends UnknownArray = []> = TArray extends UnknownArray // For distributing `TArray`
53
- ? keyof TArray & `${number}` extends never
54
- // Enters this branch, if `TArray` is empty (e.g., []),
51
+ ? keyof TArray & `${number}` extends never // Enters this branch, if `TArray` is empty (e.g., []),
55
52
  // or `TArray` contains no non-rest elements preceding the rest element (e.g., `[...string[]]` or `[...string[], string]`).
56
53
  ? TArray extends readonly [...infer Rest, infer Last] ? _CollapseRestElement<Rest, ForwardAccumulator, [Last, ...BackwardAccumulator]> // Accumulate elements that are present after the rest element.
57
54
  : TArray extends readonly [] ? [...ForwardAccumulator, ...BackwardAccumulator] : [...ForwardAccumulator, TArray[number], ...BackwardAccumulator] // Add the rest element between the accumulated elements.
@@ -62,7 +59,6 @@ type _CollapseRestElement<TArray extends UnknownArray, ForwardAccumulator extend
62
59
  //#region node_modules/.pnpm/type-fest@5.5.0/node_modules/type-fest/source/numeric.d.ts
63
60
  type _Numeric = number | bigint;
64
61
  type Zero = 0 | 0n;
65
-
66
62
  /**
67
63
  Matches the hidden `Infinity` type.
68
64
 
@@ -74,7 +70,6 @@ Please upvote [this issue](https://github.com/microsoft/TypeScript/issues/32277)
74
70
  */
75
71
  // See https://github.com/microsoft/TypeScript/issues/31752
76
72
  // eslint-disable-next-line no-loss-of-precision
77
-
78
73
  /**
79
74
  A negative `number`/`bigint` (`-∞ < x < 0`)
80
75
 
@@ -112,7 +107,6 @@ type TagContainer<Token> = {
112
107
  readonly [tag]: Token;
113
108
  };
114
109
  type Tag<Token extends PropertyKey, TagMetadata> = TagContainer<{ [K in Token]: TagMetadata }>;
115
-
116
110
  /**
117
111
  Attach a "tag" to an arbitrary type. This allows you to create distinct types, that aren't assignable to one another, for distinct concepts in your program that should not be interchangeable, even if their runtime values have the same type. (See examples.)
118
112
 
@@ -174,7 +168,7 @@ type SpecialCacheKey2 = Tagged<string, 'URL' | 'SpecialCacheKey'>;
174
168
 
175
169
  @category Type
176
170
  */
177
- type Tagged<Type$1, TagName extends PropertyKey, TagMetadata = never> = Type$1 & Tag<TagName, TagMetadata>;
171
+ type Tagged<Type, TagName extends PropertyKey, TagMetadata = never> = Type & Tag<TagName, TagMetadata>;
178
172
  /**
179
173
  Revert a tagged type back to its original type by removing all tags.
180
174
 
@@ -206,7 +200,6 @@ type WontWork = UnwrapTagged<string>;
206
200
  */
207
201
  type UnwrapTagged<TaggedType extends Tag<PropertyKey, any>> = RemoveAllTags<TaggedType>;
208
202
  type RemoveAllTags<T> = T extends Tag<PropertyKey, any> ? { [ThisTag in keyof T[typeof tag]]: T extends Tagged<infer Type, ThisTag, T[typeof tag][ThisTag]> ? RemoveAllTags<Type> : never }[keyof T[typeof tag]] : T;
209
-
210
203
  /**
211
204
  Note: The `Opaque` type is deprecated in favor of `Tagged`.
212
205
 
@@ -340,8 +333,7 @@ type L2 = Length<`${number}`>;
340
333
  @category Utilities
341
334
  */
342
335
  type IsStringLiteral<S> = IfNotAnyOrNever<S, _IsStringLiteral<CollapseLiterals<S extends TagContainer<any> ? UnwrapTagged<S> : S>>, false, false>;
343
- type _IsStringLiteral<S> =
344
- // If `T` is an infinite string type (e.g., `on${string}`), `Record<T, never>` produces an index signature,
336
+ type _IsStringLiteral<S> = // If `T` is an infinite string type (e.g., `on${string}`), `Record<T, never>` produces an index signature,
345
337
  // and since `{}` extends index signatures, the result becomes `false`.
346
338
  S extends string ? {} extends Record<S, never> ? false : true : false;
347
339
  //#endregion
@@ -445,7 +437,6 @@ type SomeExtendOptions = {
445
437
  type DefaultSomeExtendOptions = {
446
438
  strictNever: true;
447
439
  };
448
-
449
440
  /**
450
441
  Returns a boolean for whether some element in an array type extends another type.
451
442
 
@@ -492,10 +483,9 @@ type B = SomeExtend<[1?, 2?, '3'?], string | undefined>;
492
483
  @category Utilities
493
484
  @category Array
494
485
  */
495
- type SomeExtend<TArray extends UnknownArray, Type$1, Options extends SomeExtendOptions = {}> = _SomeExtend<CollapseRestElement<TArray>, Type$1, ApplyDefaultOptions<SomeExtendOptions, DefaultSomeExtendOptions, Options>>;
496
- type _SomeExtend<TArray extends UnknownArray, Type$1, Options extends Required<SomeExtendOptions>> = IfNotAnyOrNever<TArray, TArray extends readonly [infer First, ...infer Rest] ? IsNever<First> extends true ? Or<Or<IsNever<Type$1>, IsAny<Type$1>>, Not<Options['strictNever']>> extends true
497
- // If target `Type` is also `never`, or is `any`, or `strictNever` is disabled, return `true`.
498
- ? true : _SomeExtend<Rest, Type$1, Options> : First extends Type$1 ? true : _SomeExtend<Rest, Type$1, Options> : false, false, false>;
486
+ type SomeExtend<TArray extends UnknownArray, Type, Options extends SomeExtendOptions = {}> = _SomeExtend<CollapseRestElement<TArray>, Type, ApplyDefaultOptions<SomeExtendOptions, DefaultSomeExtendOptions, Options>>;
487
+ type _SomeExtend<TArray extends UnknownArray, Type, Options extends Required<SomeExtendOptions>> = IfNotAnyOrNever<TArray, TArray extends readonly [infer First, ...infer Rest] ? IsNever<First> extends true ? Or<Or<IsNever<Type>, IsAny<Type>>, Not<Options['strictNever']>> extends true // If target `Type` is also `never`, or is `any`, or `strictNever` is disabled, return `true`.
488
+ ? true : _SomeExtend<Rest, Type, Options> : First extends Type ? true : _SomeExtend<Rest, Type, Options> : false, false, false>;
499
489
  //#endregion
500
490
  //#region node_modules/.pnpm/type-fest@5.5.0/node_modules/type-fest/source/or-all.d.ts
501
491
  /**
@@ -646,7 +636,7 @@ type G = Or<never, never>;
646
636
  @see {@link And}
647
637
  @see {@link Xor}
648
638
  */
649
- type Or<A$1 extends boolean, B$1 extends boolean> = OrAll<[A$1, B$1]>;
639
+ type Or<A extends boolean, B extends boolean> = OrAll<[A, B]>;
650
640
  //#endregion
651
641
  //#region node_modules/.pnpm/type-fest@5.5.0/node_modules/type-fest/source/all-extend.d.ts
652
642
  /**
@@ -684,7 +674,6 @@ type AllExtendOptions = {
684
674
  type DefaultAllExtendOptions = {
685
675
  strictNever: true;
686
676
  };
687
-
688
677
  /**
689
678
  Returns a boolean for whether every element in an array type extends another type.
690
679
 
@@ -731,10 +720,9 @@ type B = AllExtend<[1?, 2?, 3?], number | undefined>;
731
720
  @category Utilities
732
721
  @category Array
733
722
  */
734
- type AllExtend<TArray extends UnknownArray, Type$1, Options extends AllExtendOptions = {}> = _AllExtend<CollapseRestElement<TArray>, Type$1, ApplyDefaultOptions<AllExtendOptions, DefaultAllExtendOptions, Options>>;
735
- type _AllExtend<TArray extends UnknownArray, Type$1, Options extends Required<AllExtendOptions>> = IfNotAnyOrNever<TArray, TArray extends readonly [infer First, ...infer Rest] ? IsNever<First> extends true ? Or<Or<IsNever<Type$1>, IsAny<Type$1>>, Not<Options['strictNever']>> extends true
736
- // If target `Type` is also `never`, or is `any`, or `strictNever` is disabled, recurse further.
737
- ? _AllExtend<Rest, Type$1, Options> : false : First extends Type$1 ? _AllExtend<Rest, Type$1, Options> : false : true, false, false>;
723
+ type AllExtend<TArray extends UnknownArray, Type, Options extends AllExtendOptions = {}> = _AllExtend<CollapseRestElement<TArray>, Type, ApplyDefaultOptions<AllExtendOptions, DefaultAllExtendOptions, Options>>;
724
+ type _AllExtend<TArray extends UnknownArray, Type, Options extends Required<AllExtendOptions>> = IfNotAnyOrNever<TArray, TArray extends readonly [infer First, ...infer Rest] ? IsNever<First> extends true ? Or<Or<IsNever<Type>, IsAny<Type>>, Not<Options['strictNever']>> extends true // If target `Type` is also `never`, or is `any`, or `strictNever` is disabled, recurse further.
725
+ ? _AllExtend<Rest, Type, Options> : false : First extends Type ? _AllExtend<Rest, Type, Options> : false : true, false, false>;
738
726
  //#endregion
739
727
  //#region node_modules/.pnpm/type-fest@5.5.0/node_modules/type-fest/source/and-all.d.ts
740
728
  /**
@@ -888,7 +876,7 @@ type G = And<never, never>;
888
876
  @see {@link Or}
889
877
  @see {@link Xor}
890
878
  */
891
- type And<A$1 extends boolean, B$1 extends boolean> = AndAll<[A$1, B$1]>;
879
+ type And<A extends boolean, B extends boolean> = AndAll<[A, B]>;
892
880
  //#endregion
893
881
  //#region node_modules/.pnpm/type-fest@5.5.0/node_modules/type-fest/source/exclude-exactly.d.ts
894
882
  /**
@@ -919,15 +907,12 @@ type TestExcludeExactly3 = ExcludeExactly<{a: string} | {a: string; b: string},
919
907
 
920
908
  @category Improved Built-in
921
909
  */
922
- type ExcludeExactly<Union, Delete> = IfNotAnyOrNever<Union, _ExcludeExactly<Union, Delete>,
923
- // If `Union` is `any`, then if `Delete` is `any`, return `never`, else return `Union`.
924
- If<IsAny<Delete>, never, Union>,
925
- // If `Union` is `never`, then if `Delete` is `never`, return `never`, else return `Union`.
910
+ type ExcludeExactly<Union, Delete> = IfNotAnyOrNever<Union, _ExcludeExactly<Union, Delete>, // If `Union` is `any`, then if `Delete` is `any`, return `never`, else return `Union`.
911
+ If<IsAny<Delete>, never, Union>, // If `Union` is `never`, then if `Delete` is `never`, return `never`, else return `Union`.
926
912
  If<IsNever<Delete>, never, Union>>;
927
913
  type _ExcludeExactly<Union, Delete> = IfNotAnyOrNever<Delete, Union extends unknown // For distributing `Union`
928
914
  ? [Delete extends unknown // For distributing `Delete`
929
- ? If<IsEqual<Union, Delete>, true, never> : never] extends [never] ? Union : never : never,
930
- // If `Delete` is `any` or `never`, then return `Union`,
915
+ ? If<IsEqual<Union, Delete>, true, never> : never] extends [never] ? Union : never : never, // If `Delete` is `any` or `never`, then return `Union`,
931
916
  // because `Union` cannot be `any` or `never` here.
932
917
  Union, Union>;
933
918
  //#endregion
@@ -1050,10 +1035,8 @@ type SomeOptional = SetOptional<Foo, 'b' | 'c'>;
1050
1035
  */
1051
1036
  type SetOptional<BaseType, Keys extends keyof BaseType> = (BaseType extends ((...arguments_: never) => any) ? (...arguments_: Parameters<BaseType>) => ReturnType<BaseType> : unknown) & _SetOptional<BaseType, Keys>;
1052
1037
  type _SetOptional<BaseType, Keys extends keyof BaseType> = BaseType extends unknown // To distribute `BaseType` when it's a union type.
1053
- ? Simplify<
1054
- // Pick just the keys that are readonly from the base type.
1055
- Except<BaseType, Keys> &
1056
- // Pick the keys that should be mutable from the base type and make them mutable.
1038
+ ? Simplify< // Pick just the keys that are readonly from the base type.
1039
+ Except<BaseType, Keys> & // Pick the keys that should be mutable from the base type and make them mutable.
1057
1040
  Partial<HomomorphicPick<BaseType, Keys>>> : never;
1058
1041
  //#endregion
1059
1042
  //#region node_modules/.pnpm/type-fest@5.5.0/node_modules/type-fest/source/split.d.ts
@@ -1084,7 +1067,6 @@ type SplitOptions = {
1084
1067
  type DefaultSplitOptions = {
1085
1068
  strictLiteralChecks: true;
1086
1069
  };
1087
-
1088
1070
  /**
1089
1071
  Represents an array of strings split using a given character or character set.
1090
1072
 
@@ -1110,8 +1092,7 @@ type Split<S extends string, Delimiter extends string, Options extends SplitOpti
1110
1092
  type SplitHelper<S extends string, Delimiter extends string, Options extends Required<SplitOptions>, Accumulator extends string[] = []> = S extends string // For distributing `S`
1111
1093
  ? Delimiter extends string // For distributing `Delimiter`
1112
1094
  // If `strictLiteralChecks` is `false` OR `S` and `Delimiter` both are string literals, then perform the split
1113
- ? Or<Not<Options['strictLiteralChecks']>, And<IsStringLiteral<S>, IsStringLiteral<Delimiter>>> extends true ? S extends `${infer Head}${Delimiter}${infer Tail}` ? SplitHelper<Tail, Delimiter, Options, [...Accumulator, Head]> : Delimiter extends '' ? S extends '' ? Accumulator : [...Accumulator, S] : [...Accumulator, S]
1114
- // Otherwise, return `string[]`
1095
+ ? Or<Not<Options['strictLiteralChecks']>, And<IsStringLiteral<S>, IsStringLiteral<Delimiter>>> extends true ? S extends `${infer Head}${Delimiter}${infer Tail}` ? SplitHelper<Tail, Delimiter, Options, [...Accumulator, Head]> : Delimiter extends '' ? S extends '' ? Accumulator : [...Accumulator, S] : [...Accumulator, S] // Otherwise, return `string[]`
1115
1096
  : string[] : never // Should never happen
1116
1097
  : never; // Should never happen
1117
1098
  //#endregion
@@ -1122,7 +1103,6 @@ type ReplaceOptions = {
1122
1103
  type DefaultReplaceOptions = {
1123
1104
  all: false;
1124
1105
  };
1125
-
1126
1106
  /**
1127
1107
  Represents a string with some or all matches replaced by a replacement.
1128
1108
 
@@ -1227,7 +1207,7 @@ declare function arrayCompete<T>(initialList: readonly T[], match: (a: T, b: T,
1227
1207
  * type list1 = number[]
1228
1208
  * ```
1229
1209
  */
1230
- declare type List<A$1 = any> = ReadonlyArray<A$1>;
1210
+ declare type List<A = any> = ReadonlyArray<A>;
1231
1211
  //#endregion
1232
1212
  //#region node_modules/.pnpm/ts-toolbelt@9.6.0/node_modules/ts-toolbelt/out/Any/Cast.d.ts
1233
1213
  /**
@@ -1495,7 +1475,7 @@ declare type IterationMap = {
1495
1475
  * type test1 = I.Pos<I.Prev<i>> // 19
1496
1476
  * ```
1497
1477
  */
1498
- declare type Prev<I$1 extends Iteration> = IterationMap[I$1[2]];
1478
+ declare type Prev<I extends Iteration> = IterationMap[I[2]];
1499
1479
  //#endregion
1500
1480
  //#region node_modules/.pnpm/ts-toolbelt@9.6.0/node_modules/ts-toolbelt/out/Iteration/IterationOf.d.ts
1501
1481
  /**
@@ -1533,7 +1513,7 @@ declare type IterationOf<N extends number> = `${N}` extends keyof IterationMap ?
1533
1513
  * type test1 = I.Pos<I.Next<i>> // 21
1534
1514
  * ```
1535
1515
  */
1536
- declare type Pos<I$1 extends Iteration> = I$1[0];
1516
+ declare type Pos<I extends Iteration> = I[0];
1537
1517
  //#endregion
1538
1518
  //#region node_modules/.pnpm/ts-toolbelt@9.6.0/node_modules/ts-toolbelt/out/List/Tail.d.ts
1539
1519
  /**
@@ -1575,7 +1555,7 @@ declare type Naked<L extends List> = Overwrite<Required<L>, L>;
1575
1555
  * ```ts
1576
1556
  * ```
1577
1557
  */
1578
- declare type Prepend<L extends List, A$1 extends any> = [A$1, ...L];
1558
+ declare type Prepend<L extends List, A extends any> = [A, ...L];
1579
1559
  //#endregion
1580
1560
  //#region node_modules/.pnpm/ts-toolbelt@9.6.0/node_modules/ts-toolbelt/out/Iteration/_Internal.d.ts
1581
1561
  /**
@@ -1599,7 +1579,7 @@ declare type Way = '->' | '<-';
1599
1579
  * type test3 = L.Append<[1, 2], [3, 4]> // [1, 2, [3, 4]]
1600
1580
  * ```
1601
1581
  */
1602
- declare type Append<L extends List, A$1 extends any> = [...L, A$1];
1582
+ declare type Append<L extends List, A extends any> = [...L, A];
1603
1583
  //#endregion
1604
1584
  //#region node_modules/.pnpm/ts-toolbelt@9.6.0/node_modules/ts-toolbelt/out/List/Drop.d.ts
1605
1585
  /**
@@ -1612,10 +1592,10 @@ declare type DropForth<L extends List, N extends Iteration> = {
1612
1592
  /**
1613
1593
  * @hidden
1614
1594
  */
1615
- declare type DropBack<L extends List, N extends Iteration, I$1 extends Iteration = Prev<N>, LN extends List = []> = {
1616
- 0: DropBack<L, N, Prev<I$1>, Prepend<LN, L[Pos<I$1>]>>;
1595
+ declare type DropBack<L extends List, N extends Iteration, I extends Iteration = Prev<N>, LN extends List = []> = {
1596
+ 0: DropBack<L, N, Prev<I>, Prepend<LN, L[Pos<I>]>>;
1617
1597
  1: LN;
1618
- }[Extends<-1, Pos<I$1>>];
1598
+ }[Extends<-1, Pos<I>>];
1619
1599
  /**
1620
1600
  * @hidden
1621
1601
  */
@@ -1644,10 +1624,10 @@ declare type Drop<L extends List, N extends number, way extends Way = '->'> = L
1644
1624
  * starts in reverse from `N` till `N` = 0
1645
1625
  * @hidden
1646
1626
  */
1647
- declare type TakeForth<L extends List, N extends Iteration, I$1 extends Iteration = Prev<N>, LN extends List = []> = {
1648
- 0: TakeForth<L, N, Prev<I$1>, Prepend<LN, L[Pos<I$1>]>>;
1627
+ declare type TakeForth<L extends List, N extends Iteration, I extends Iteration = Prev<N>, LN extends List = []> = {
1628
+ 0: TakeForth<L, N, Prev<I>, Prepend<LN, L[Pos<I>]>>;
1649
1629
  1: LN;
1650
- }[Extends<-1, Pos<I$1>>];
1630
+ }[Extends<-1, Pos<I>>];
1651
1631
  /**
1652
1632
  * starts in reverse from the end till `N` = 0
1653
1633
  * @hidden
@@ -1680,15 +1660,15 @@ declare type _Take<L extends List, N extends number, way extends Way = '->'> = _
1680
1660
  declare type Take<L extends List, N extends number, way extends Way = '->'> = L extends unknown ? N extends unknown ? _Take<L, N, way> : never : never;
1681
1661
  //#endregion
1682
1662
  //#region src/types/index.type.d.ts
1683
- type AnyArray<A$1 = any> = readonly A$1[];
1663
+ type AnyArray<A = any> = readonly A[];
1684
1664
  type Range<Start extends number, End extends number> = Exclude<keyof TupleOf<End>, keyof TupleOf<Start>>;
1685
- type TupleToEntries<A$1 extends readonly unknown[]> = If<IsAny<A$1>, unknown, { [Key in keyof A$1]: [Key, A$1[Key]] }>;
1665
+ type TupleToEntries<A extends readonly unknown[]> = If<IsAny<A>, unknown, { [Key in keyof A]: [Key, A[Key]] }>;
1686
1666
  type Groups<L extends AnyArray, LN extends AnyArray = [], D extends number[] = []> = D["length"] extends 40 ? LN : {
1687
1667
  0: Groups<Drop<L, 1>, Append<LN, [`${LN["length"]}`, Take<L, 1>]>, [...D, 0]>;
1688
1668
  1: LN;
1689
1669
  }[Extends<L, AnyArray<never>>];
1690
1670
  type TupleToGroups<L extends AnyArray> = Groups<L> extends infer X ? Cast<X, AnyArray> : never;
1691
- type MatchFunction<T, R$1 = unknown> = (row: T, index: number) => R$1;
1671
+ type MatchFunction<T, R = unknown> = (row: T, index: number) => R;
1692
1672
  //#endregion
1693
1673
  //#region src/utils/array/arrayCounting.d.ts
1694
1674
  /**
@@ -1707,7 +1687,7 @@ type MatchFunction<T, R$1 = unknown> = (row: T, index: number) => R$1;
1707
1687
  * arrayCounting(users, (u) => u.group); // { A: 2, B: 1 }
1708
1688
  * ```
1709
1689
  */
1710
- declare function arrayCounting<T, K$1 extends PropertyKey>(initialList: readonly T[], match: MatchFunction<T, K$1>): Record<string, number>;
1690
+ declare function arrayCounting<T, K extends PropertyKey>(initialList: readonly T[], match: MatchFunction<T, K>): Record<string, number>;
1711
1691
  //#endregion
1712
1692
  //#region src/utils/array/arrayDifference.d.ts
1713
1693
  /**
@@ -1834,7 +1814,7 @@ declare function arrayMerge<T, D = T>(initialList: readonly T[], mergeList: read
1834
1814
  * ```
1835
1815
  */
1836
1816
  declare function arrayPick<const T>(initialList: readonly T[], filter: (row: T, index: number) => boolean): T[];
1837
- declare function arrayPick<const T, K$1 = T>(initialList: readonly T[], filter: (row: T, index: number) => boolean, mapper: ((row: T, index: number) => K$1)): K$1[];
1817
+ declare function arrayPick<const T, K = T>(initialList: readonly T[], filter: (row: T, index: number) => boolean, mapper: ((row: T, index: number) => K)): K[];
1838
1818
  //#endregion
1839
1819
  //#region src/utils/array/arrayReplace.d.ts
1840
1820
  /**
@@ -1852,8 +1832,8 @@ declare function arrayPick<const T, K$1 = T>(initialList: readonly T[], filter:
1852
1832
  * ```
1853
1833
  */
1854
1834
  declare function arrayReplace<const T>(initialList: readonly T[], newItem: T, match: MatchFunction<T, boolean>): T[];
1855
- declare function arrayReplace<const T, K$1 extends T>(initialList: readonly T[], newItem: K$1, match: MatchFunction<T, boolean>): T[];
1856
- declare function arrayReplace<const T, K$1>(initialList: readonly T[], newItem: K$1, match: MatchFunction<T, boolean>): (T | K$1)[];
1835
+ declare function arrayReplace<const T, K extends T>(initialList: readonly T[], newItem: K, match: MatchFunction<T, boolean>): T[];
1836
+ declare function arrayReplace<const T, K>(initialList: readonly T[], newItem: K, match: MatchFunction<T, boolean>): (T | K)[];
1857
1837
  //#endregion
1858
1838
  //#region src/utils/array/arrayReplaceMove.d.ts
1859
1839
  type PositionType = "start" | "end" | number;
@@ -1938,9 +1918,9 @@ declare function arrayZip(): [];
1938
1918
  * arrayZipToObject(["a", "b"], 1); // { a: 1, b: 1 }
1939
1919
  * ```
1940
1920
  */
1941
- declare function arrayZipToObject<const K$1 extends PropertyKey, const V$1>(keys: readonly K$1[], array: readonly V$1[]): Record<K$1, V$1>;
1942
- declare function arrayZipToObject<const K$1 extends PropertyKey, const V$1>(keys: readonly K$1[], match: MatchFunction<K$1, V$1>): Record<K$1, V$1>;
1943
- declare function arrayZipToObject<const K$1 extends PropertyKey, const V$1>(keys: readonly K$1[], value: V$1): Record<K$1, V$1>;
1921
+ declare function arrayZipToObject<const K extends PropertyKey, const V>(keys: readonly K[], array: readonly V[]): Record<K, V>;
1922
+ declare function arrayZipToObject<const K extends PropertyKey, const V>(keys: readonly K[], match: MatchFunction<K, V>): Record<K, V>;
1923
+ declare function arrayZipToObject<const K extends PropertyKey, const V>(keys: readonly K[], value: V): Record<K, V>;
1944
1924
  //#endregion
1945
1925
  //#region src/utils/device/isBrowser.d.ts
1946
1926
  declare function isBrowser(): boolean;
@@ -2004,7 +1984,27 @@ declare function isTablet(minWidth?: number, maxWidth?: number, dpi?: number): b
2004
1984
  * console.log(data);
2005
1985
  * ```
2006
1986
  */
2007
- declare function to<T, U$1 = Error>(promise: Readonly<Promise<T>>, errorExt?: PlainObject): Promise<[U$1, undefined] | [null, T]>;
1987
+ declare function to<T, U = Error>(promise: Readonly<Promise<T>>, errorExt?: PlainObject): Promise<[U, undefined] | [null, T]>;
1988
+ //#endregion
1989
+ //#region src/utils/function/toPromise.d.ts
1990
+ /**
1991
+ * 将同步或异步函数统一包装为 Promise
1992
+ * - 自动捕获同步异常
1993
+ *
1994
+ * @param fn 返回值可为同步值或 Promise 的函数
1995
+ * @returns 标准化的 Promise
1996
+ *
1997
+ * @example
1998
+ * // 同步函数
1999
+ * toPromise(() => 42).then(v => console.log(v)); // 42
2000
+ *
2001
+ * // 异步函数
2002
+ * toPromise(async () => await fetchData()).then(data => ...);
2003
+ *
2004
+ * // 异常处理
2005
+ * toPromise(() => { throw new Error('fail'); }).catch(err => console.error(err)); // 捕获同步异常
2006
+ */
2007
+ declare function toPromise<T>(fn: () => T | Promise<T>): Promise<T>;
2008
2008
  //#endregion
2009
2009
  //#region src/utils/math/mathToBignumber.d.ts
2010
2010
  /**
@@ -2285,7 +2285,7 @@ interface BigInt64Array$1 {
2285
2285
  * the accumulation. The first call to the callbackfn function provides this value as an argument
2286
2286
  * instead of an array value.
2287
2287
  */
2288
- reduce<U$1>(callbackfn: (previousValue: U$1, currentValue: bigint, currentIndex: number, array: BigInt64Array$1) => U$1, initialValue: U$1): U$1;
2288
+ reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array$1) => U, initialValue: U): U;
2289
2289
  /**
2290
2290
  * Calls the specified callback function for all the elements in an array, in descending order.
2291
2291
  * The return value of the callback function is the accumulated result, and is provided as an
@@ -2307,7 +2307,7 @@ interface BigInt64Array$1 {
2307
2307
  * the accumulation. The first call to the callbackfn function provides this value as an argument
2308
2308
  * instead of an array value.
2309
2309
  */
2310
- reduceRight<U$1>(callbackfn: (previousValue: U$1, currentValue: bigint, currentIndex: number, array: BigInt64Array$1) => U$1, initialValue: U$1): U$1;
2310
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array$1) => U, initialValue: U): U;
2311
2311
  /** Reverses the elements in the array. */
2312
2312
  reverse(): this;
2313
2313
  /**
@@ -2494,7 +2494,7 @@ interface BigUint64Array$1 {
2494
2494
  * the accumulation. The first call to the callbackfn function provides this value as an argument
2495
2495
  * instead of an array value.
2496
2496
  */
2497
- reduce<U$1>(callbackfn: (previousValue: U$1, currentValue: bigint, currentIndex: number, array: BigUint64Array$1) => U$1, initialValue: U$1): U$1;
2497
+ reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array$1) => U, initialValue: U): U;
2498
2498
  /**
2499
2499
  * Calls the specified callback function for all the elements in an array, in descending order.
2500
2500
  * The return value of the callback function is the accumulated result, and is provided as an
@@ -2516,7 +2516,7 @@ interface BigUint64Array$1 {
2516
2516
  * the accumulation. The first call to the callbackfn function provides this value as an argument
2517
2517
  * instead of an array value.
2518
2518
  */
2519
- reduceRight<U$1>(callbackfn: (previousValue: U$1, currentValue: bigint, currentIndex: number, array: BigUint64Array$1) => U$1, initialValue: U$1): U$1;
2519
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array$1) => U, initialValue: U): U;
2520
2520
  /** Reverses the elements in the array. */
2521
2521
  reverse(): this;
2522
2522
  /**
@@ -2651,7 +2651,6 @@ declare class Any {
2651
2651
  /**
2652
2652
  * Represents a class constructor.
2653
2653
  */
2654
-
2655
2654
  /**
2656
2655
  * Get all properties **not using** the `?:` type operator.
2657
2656
  */
@@ -2665,7 +2664,7 @@ type OptionalKeys<T> = T extends any ? keyof T extends infer K ? K extends keyof
2665
2664
  *
2666
2665
  * Otherwise false.
2667
2666
  */
2668
- type IsExactType<Left, Right> = [Left] extends [Any] ? [Right] extends [Any] ? true : false : (<U$1>() => U$1 extends Left ? 1 : 0) extends (<U$1>() => U$1 extends Right ? 1 : 0) ? true : false;
2667
+ type IsExactType<Left, Right> = [Left] extends [Any] ? [Right] extends [Any] ? true : false : (<U>() => U extends Left ? 1 : 0) extends (<U>() => U extends Right ? 1 : 0) ? true : false;
2669
2668
  type Primitive = number | string | boolean | symbol | bigint | null | undefined | void;
2670
2669
  /**
2671
2670
  * Coerce a primitive type to its boxed equivalent.
@@ -2718,7 +2717,6 @@ declare namespace WebDocumentAPI {
2718
2717
  type BuiltInType = GlobalObjectType<'Node'> | GlobalObjectType<'NodeList'> | GlobalObjectType<'NodeIterator'> | GlobalObjectType<'HTMLCollection'> | GlobalObjectType<'CSSStyleDeclaration'> | GlobalObjectType<'DOMStringList'> | GlobalObjectType<'DOMTokenList'>;
2719
2718
  }
2720
2719
  type GlobalObjectType<Identifier extends string> = [Identifier] extends [Any] ? never : keyof Identifier extends never ? never : typeof globalThis extends { [P in Identifier]: any } ? InstanceType<(typeof globalThis)[Identifier]> : never;
2721
-
2722
2720
  /**
2723
2721
  * Converts a `PromiseLike` to a `Promise<Result>`.
2724
2722
  *
@@ -2741,7 +2739,6 @@ type GlobalObjectType<Identifier extends string> = [Identifier] extends [Any] ?
2741
2739
  * ```
2742
2740
  * @version 12.4.0
2743
2741
  */
2744
-
2745
2742
  /**
2746
2743
  * The return type for `assign`.
2747
2744
  *
@@ -2771,11 +2768,13 @@ type AssignDeep<TInitial, TOverride, IsOptional = false> = never
2771
2768
  /**
2772
2769
  * When a native type is found in TInitial, it will only exist in
2773
2770
  * the result type if the override is optional.
2774
- */ | (TInitial extends AtomicValue ? IsOptional extends true ? TInitial : never : never)
2771
+ */
2772
+ | (TInitial extends AtomicValue ? IsOptional extends true ? TInitial : never : never)
2775
2773
  /**
2776
2774
  * When a native type is found in TOverride, it will always exists
2777
2775
  * in the result type.
2778
- */ | (TOverride extends AtomicValue ? TOverride : never)
2776
+ */
2777
+ | (TOverride extends AtomicValue ? TOverride : never)
2779
2778
  /**
2780
2779
  * Deep assignment is handled in this branch.
2781
2780
  *
@@ -2786,10 +2785,9 @@ type AssignDeep<TInitial, TOverride, IsOptional = false> = never
2786
2785
  * every non-native object in TInitial
2787
2786
  * 4. For each non-object type in TOverride, simply replace TInitial
2788
2787
  * (or use "A | B" if the override is optional)
2789
- */ | (Exclude<TOverride, AtomicValue> extends infer TOverride ? Exclude<TInitial, Exclude<AtomicValue, void>> extends infer TInitial ? [Extract<TInitial, object>] extends [never] ? TOverride | (IsOptional extends true ? TInitial : never) : TInitial extends object ? TOverride extends object ? IsExactType<TOverride, TInitial> extends true ? TOverride : Assign<TInitial, TOverride> :
2790
- // 4.
2788
+ */
2789
+ | (Exclude<TOverride, AtomicValue> extends infer TOverride ? Exclude<TInitial, Exclude<AtomicValue, void>> extends infer TInitial ? [Extract<TInitial, object>] extends [never] ? TOverride | (IsOptional extends true ? TInitial : never) : TInitial extends object ? TOverride extends object ? IsExactType<TOverride, TInitial> extends true ? TOverride : Assign<TInitial, TOverride> : // 4.
2791
2790
  TOverride | (IsOptional extends true ? TInitial : never) : Extract<TOverride, object> | (IsOptional extends true ? TInitial : never) : never : never);
2792
-
2793
2791
  /**
2794
2792
  * Creates a shallow copy of the given object/value.
2795
2793
  *
@@ -2823,8 +2821,8 @@ TOverride | (IsOptional extends true ? TInitial : never) : Extract<TOverride, ob
2823
2821
  * objectAssign(initial, override); // { a: 1, b: { c: 2, d: 3 } }
2824
2822
  * ```
2825
2823
  */
2826
- declare function objectAssign<I$1 extends PlainObject, O extends PlainObject>(initial: I$1, override: O): Assign<I$1, O>;
2827
- declare function objectAssign<I$1 extends AnyObject, O extends AnyObject>(initial: I$1, override: O): Assign<I$1, O>;
2824
+ declare function objectAssign<I extends PlainObject, O extends PlainObject>(initial: I, override: O): Assign<I, O>;
2825
+ declare function objectAssign<I extends AnyObject, O extends AnyObject>(initial: I, override: O): Assign<I, O>;
2828
2826
  //#endregion
2829
2827
  //#region src/utils/object/objectCrush.d.ts
2830
2828
  type Crush<T> = T extends readonly (infer U)[] ? Record<string, U extends object ? unknown : U> : Simplify<UnionToIntersection<keyof T extends infer Prop ? Prop extends keyof T ? T[Prop] extends infer Value ? ([Extract<Value, object>] extends [never] ? never : Record<string, unknown>) | ([Exclude<Value, object>] extends [never] ? never : [Extract<Value, object>] extends [never] ? { [P in Prop]: Value } : Record<string, unknown>) : never : never : never>>;
@@ -2855,13 +2853,13 @@ declare function objectCrush<T extends AnyObject>(anyObject: T): Crush<T>;
2855
2853
  * ```
2856
2854
  */
2857
2855
  declare function objectEntries<const S extends string>(string: S): TupleToEntries<Split<S, "">>;
2858
- declare function objectEntries<const A$1 extends readonly unknown[]>(array: A$1): TupleToGroups<A$1>;
2856
+ declare function objectEntries<const A extends readonly unknown[]>(array: A): TupleToGroups<A>;
2859
2857
  declare function objectEntries<const O extends PlainObject>(plainObject: O): [`${keyof Except<O, symbol>}`, O[keyof Except<O, symbol>]][];
2860
2858
  declare function objectEntries<const O extends AnyObject>(anyObject: O): [`${keyof Except<O, symbol>}`, O[keyof Except<O, symbol>]][];
2861
2859
  //#endregion
2862
2860
  //#region src/utils/object/objectInvert.d.ts
2863
- type IntersectOf<U$1> = (U$1 extends unknown ? (k: U$1) => void : never) extends ((k: infer I) => void) ? I : never;
2864
- type ComputeRaw<A$1> = A$1 extends AnyFunction ? A$1 : { [K in keyof A$1]: A$1[K] } & unknown;
2861
+ type IntersectOf<U> = (U extends unknown ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
2862
+ type ComputeRaw<A> = A extends AnyFunction ? A : { [K in keyof A]: A[K] } & unknown;
2865
2863
  type _Invert<O extends Record<PropertyKey, PropertyKey>> = ComputeRaw<IntersectOf<{ [K in keyof O]: Record<O[K], K> }[keyof O]>>;
2866
2864
  type Invert<O extends Record<keyof O, PropertyKey>> = O extends unknown ? _Invert<O> : never;
2867
2865
  /**
@@ -2891,7 +2889,7 @@ declare function objectInvert<const O extends AnyObject>(anyObject: O): Invert<O
2891
2889
  * ```
2892
2890
  */
2893
2891
  declare function objectKeys<const S extends string>(string: S): UnionToTuple<Range<0, Split<S, "">["length"]>>;
2894
- declare function objectKeys<const A$1 extends ArrayLike<unknown>>(array: A$1): UnionToTuple<Range<0, A$1["length"]>>;
2892
+ declare function objectKeys<const A extends ArrayLike<unknown>>(array: A): UnionToTuple<Range<0, A["length"]>>;
2895
2893
  declare function objectKeys<O extends PlainObject>(plainObject: O): `${Extract<keyof O, string | number>}`[];
2896
2894
  declare function objectKeys<O extends AnyObject>(anyObject: O): `${Extract<keyof O, string | number>}`[];
2897
2895
  //#endregion
@@ -2907,8 +2905,8 @@ declare function objectKeys<O extends AnyObject>(anyObject: O): `${Extract<keyof
2907
2905
  * objectOmit({ a: 1, b: 2 }, ["a"]); // { b: 2 }
2908
2906
  * ```
2909
2907
  */
2910
- declare function objectOmit<O extends PlainObject, K$1 extends keyof O>(plainObject: O, keys: readonly K$1[]): Omit<O, K$1>;
2911
- declare function objectOmit<O extends AnyObject, K$1 extends keyof O>(anyObject: O, keys: readonly K$1[]): Omit<O, K$1>;
2908
+ declare function objectOmit<O extends PlainObject, K extends keyof O>(plainObject: O, keys: readonly K[]): Omit<O, K>;
2909
+ declare function objectOmit<O extends AnyObject, K extends keyof O>(anyObject: O, keys: readonly K[]): Omit<O, K>;
2912
2910
  //#endregion
2913
2911
  //#region src/utils/object/objectPick.d.ts
2914
2912
  /**
@@ -2922,8 +2920,8 @@ declare function objectOmit<O extends AnyObject, K$1 extends keyof O>(anyObject:
2922
2920
  * objectPick({ a: 1, b: 2 }, ["a"]); // { a: 1 }
2923
2921
  * ```
2924
2922
  */
2925
- declare function objectPick<O extends PlainObject, K$1 extends keyof O>(plainObject: O, keys: readonly K$1[]): Pick<O, K$1>;
2926
- declare function objectPick<O extends AnyObject, K$1 extends keyof O>(anyObject: O, keys: readonly K$1[]): Pick<O, K$1>;
2923
+ declare function objectPick<O extends PlainObject, K extends keyof O>(plainObject: O, keys: readonly K[]): Pick<O, K>;
2924
+ declare function objectPick<O extends AnyObject, K extends keyof O>(anyObject: O, keys: readonly K[]): Pick<O, K>;
2927
2925
  //#endregion
2928
2926
  //#region src/utils/object/objectValues.d.ts
2929
2927
  /**
@@ -2937,7 +2935,7 @@ declare function objectPick<O extends AnyObject, K$1 extends keyof O>(anyObject:
2937
2935
  * ```
2938
2936
  */
2939
2937
  declare function objectValues<S extends string>(string: S): Split<S, "">;
2940
- declare function objectValues<A$1 extends ArrayLike<unknown>>(array: A$1): A$1;
2938
+ declare function objectValues<A extends ArrayLike<unknown>>(array: A): A;
2941
2939
  declare function objectValues<O extends PlainObject>(plainObject: O): O[keyof O][];
2942
2940
  declare function objectValues<O extends AnyObject>(anyObject: O): O[keyof O][];
2943
2941
  //#endregion
@@ -2974,7 +2972,7 @@ declare function stringInitialCase(input: string, caseType?: "lower" | "upper" |
2974
2972
  * stringReplace("hello world", "world", "context"); // "hello context"
2975
2973
  * ```
2976
2974
  */
2977
- declare function stringReplace<I$1 extends string, S extends string, R$1 extends string>(input: I$1, search: S, replacement: R$1): Replace<I$1, S, R$1>;
2975
+ declare function stringReplace<I extends string, S extends string, R extends string>(input: I, search: S, replacement: R): Replace<I, S, R>;
2978
2976
  //#endregion
2979
2977
  //#region src/utils/string/stringTemplate.d.ts
2980
2978
  /**
@@ -3228,7 +3226,7 @@ declare function treeForEach<T extends AnyObject, CK extends string = ChildrenKe
3228
3226
  //#endregion
3229
3227
  //#region src/utils/tree/treeMap.d.ts
3230
3228
  type TreeMapOptions<T extends AnyObject, CK extends string> = BaseOptions<T, CK>;
3231
- type TreeMapCallback<R$1 extends AnyObject, T extends AnyObject> = (row: T, meta: BaseCallbackMeta<T>) => R$1;
3229
+ type TreeMapCallback<R extends AnyObject, T extends AnyObject> = (row: T, meta: BaseCallbackMeta<T>) => R;
3232
3230
  /**
3233
3231
  * 映射树节点
3234
3232
  * - 返回新的树结构,保持层级关系
@@ -3244,8 +3242,8 @@ type TreeMapCallback<R$1 extends AnyObject, T extends AnyObject> = (row: T, meta
3244
3242
  * // [{ id: 1, val: 20, children: [{ id: 2, val: 40 }] }]
3245
3243
  * ```
3246
3244
  */
3247
- declare function treeMap<R$1 extends AnyObject, T extends AnyObject, CK extends string = ChildrenKey>(tree: T[], callback: TreeMapCallback<R$1, T>, options?: TreeMapOptions<T, CK>): TreeLike<R$1, CK>[];
3248
- declare function treeMap<R$1 extends AnyObject, T extends AnyObject, CK extends string = ChildrenKey>(tree: T, callback: TreeMapCallback<R$1, T>, options?: TreeMapOptions<T, CK>): TreeLike<R$1, CK>;
3245
+ declare function treeMap<R extends AnyObject, T extends AnyObject, CK extends string = ChildrenKey>(tree: T[], callback: TreeMapCallback<R, T>, options?: TreeMapOptions<T, CK>): TreeLike<R, CK>[];
3246
+ declare function treeMap<R extends AnyObject, T extends AnyObject, CK extends string = ChildrenKey>(tree: T, callback: TreeMapCallback<R, T>, options?: TreeMapOptions<T, CK>): TreeLike<R, CK>;
3249
3247
  //#endregion
3250
3248
  //#region src/utils/tree/rowsToTree.d.ts
3251
3249
  interface RowsToTreeOptions<RK extends string = RowKey, PK extends string = ParentIdKey, CK extends string = ChildrenKey> {
@@ -3270,7 +3268,7 @@ interface RowsToTreeOptions<RK extends string = RowKey, PK extends string = Pare
3270
3268
  * // [{ id: 1, parentId: null, children: [{ id: 2, parentId: 1 }] }]
3271
3269
  * ```
3272
3270
  */
3273
- declare function rowsToTree<T extends AnyObject = AnyObject, CK extends string = ChildrenKey, R$1 = TreeLike<T, CK>, RK extends string = RowKey, PK extends string = ParentIdKey>(rows: T[], options?: RowsToTreeOptions<RK, PK, CK> | undefined): R$1[];
3271
+ declare function rowsToTree<T extends AnyObject = AnyObject, CK extends string = ChildrenKey, R = TreeLike<T, CK>, RK extends string = RowKey, PK extends string = ParentIdKey>(rows: T[], options?: RowsToTreeOptions<RK, PK, CK> | undefined): R[];
3274
3272
  //#endregion
3275
3273
  //#region src/utils/tree/treeToRows.d.ts
3276
3274
  type TreeToRowsOptions<T extends AnyObject, CK extends string = ChildrenKey> = TreeForeachOptions<T, CK>;
@@ -3288,7 +3286,7 @@ type TreeToRowsOptions<T extends AnyObject, CK extends string = ChildrenKey> = T
3288
3286
  * // [{ id: 1, children: undefined }, { id: 2, children: undefined }]
3289
3287
  * ```
3290
3288
  */
3291
- declare function treeToRows<T extends AnyObject, CK extends string = ChildrenKey, R$1 extends AnyObject = SetOptional<T, CK>>(tree: T | T[], options?: TreeToRowsOptions<T, CK>): R$1[];
3289
+ declare function treeToRows<T extends AnyObject, CK extends string = ChildrenKey, R extends AnyObject = SetOptional<T, CK>>(tree: T | T[], options?: TreeToRowsOptions<T, CK>): R[];
3292
3290
  //#endregion
3293
3291
  //#region src/utils/typeof/isAbortSignal.d.ts
3294
3292
  /**
@@ -3569,8 +3567,8 @@ declare function isInfinityLike(value: unknown): boolean;
3569
3567
  * ```ts
3570
3568
  * isObject({}); // true
3571
3569
  * isObject([]); // false
3572
- * isObject(new Date()); // false (because prototype is not Object.prototype)
3573
- * isObject(new Date(), false); // true (is object type)
3570
+ * isObject(new Date()); // false
3571
+ * isObject(new Date(), false); // true
3574
3572
  * isObject(Object.create(null)) // false
3575
3573
  * isObject(Object.create(null), false) // true
3576
3574
  * ```
@@ -3682,5 +3680,5 @@ declare function isWebSocket(value: unknown): value is WebSocket;
3682
3680
  */
3683
3681
  declare function isWindow(value: unknown): value is Window;
3684
3682
  //#endregion
3685
- export { arrayCast, arrayCompete, arrayCounting, arrayDifference, arrayFirst, arrayFork, arrayIntersection, arrayLast, arrayMerge, arrayPick, arrayReplace, arrayReplaceMove, arraySplit, arrayUnzip, arrayZip, arrayZipToObject, clone, cloneDeep, cloneDeepWith, enumEntries, enumKeys, enumValues, getTimeZone, isAbortSignal, isArray, isAsyncFunction, isAsyncGeneratorFunction, isBigInt, isBlob, isBoolean, isBrowser, isClass, isDate, isEnumeration, isEqual, isError, isFalsy, isFalsyLike, isFile, isFunction, isGeneratorFunction, isIOSMobile, isIframe, isInIframe, 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, isWebWorker, isWindow, mathToBignumber, mathToDecimal, mathToEvaluate, numberWithin, objectAssign, objectCrush, objectEntries, objectInvert, objectKeys, objectMapEntries, objectOmit, objectPick, objectValues, rowsToTree, stringInitialCase, stringReplace, stringTemplate, stringToJson, stringToLowerCase, stringToNumber, stringToPosix, stringToUpperCase, stringToValues, stringTrim, stringTruncate, to, treeFilter, treeFind, treeForEach, treeMap, treeToRows };
3683
+ export { arrayCast, arrayCompete, arrayCounting, arrayDifference, arrayFirst, arrayFork, arrayIntersection, arrayLast, arrayMerge, arrayPick, arrayReplace, arrayReplaceMove, arraySplit, arrayUnzip, arrayZip, arrayZipToObject, enumEntries, enumKeys, enumValues, getTimeZone, isAbortSignal, isArray, isAsyncFunction, isAsyncGeneratorFunction, isBigInt, isBlob, isBoolean, isBrowser, isClass, isDate, isEnumeration, isEqual, isError, isFalsy, isFalsyLike, isFile, isFunction, isGeneratorFunction, isIOSMobile, isIframe, isInIframe, 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, isWebWorker, isWindow, mathToBignumber, mathToDecimal, mathToEvaluate, numberWithin, objectAssign, objectCrush, objectEntries, objectInvert, objectKeys, objectMapEntries, objectOmit, objectPick, objectValues, rowsToTree, stringInitialCase, stringReplace, stringTemplate, stringToJson, stringToLowerCase, stringToNumber, stringToPosix, stringToUpperCase, stringToValues, stringTrim, stringTruncate, to, toPromise, treeFilter, treeFind, treeForEach, treeMap, treeToRows };
3686
3684
  //# sourceMappingURL=index.d.ts.map