@rzl-zone/utils-js 3.1.0-beta.2 → 3.1.1-beta.0

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 (134) hide show
  1. package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +23 -23
  2. package/dist/any-BmdI8UbK.d.ts +56 -56
  3. package/dist/arrays-normalize-recursive-CnjYJ9xg.d.ts +66 -66
  4. package/dist/assertions/index.cjs +1 -1
  5. package/dist/assertions/index.d.ts +396 -396
  6. package/dist/assertions/index.js +1 -1
  7. package/dist/chunk-26W3VZIK.cjs +1 -0
  8. package/dist/chunk-2KRCHXFG.cjs +2 -0
  9. package/dist/{chunk-TQMZ2LPI.js → chunk-33ZLH266.js} +1 -1
  10. package/dist/{chunk-VQLAPEL3.js → chunk-4L4EJTNZ.js} +1 -1
  11. package/dist/{chunk-CK3BZGEU.js → chunk-5Q37AP7P.js} +1 -1
  12. package/dist/chunk-7CHFAMS2.js +1 -0
  13. package/dist/{chunk-REFMEB4A.js → chunk-7MMJZ6HS.js} +1 -1
  14. package/dist/chunk-7TC6DE3J.cjs +1 -0
  15. package/dist/{chunk-K4PLGD7C.js → chunk-7VX33E3V.js} +1 -1
  16. package/dist/chunk-BEZPD44N.cjs +1 -0
  17. package/dist/{chunk-2AUUPGMN.js → chunk-BI263OHW.js} +1 -1
  18. package/dist/{chunk-LVUSFXQS.cjs → chunk-CII6WWLO.cjs} +1 -1
  19. package/dist/{chunk-OX6RLS2F.cjs → chunk-D5TYPCWU.cjs} +1 -1
  20. package/dist/{chunk-MWLEM7ED.js → chunk-EEQY5QUG.js} +1 -1
  21. package/dist/chunk-ESJYBIYH.js +1 -0
  22. package/dist/{chunk-MJAW5RAK.js → chunk-EWYPSKKM.js} +1 -1
  23. package/dist/chunk-EXCOQLWX.cjs +1 -0
  24. package/dist/chunk-FWQVTMYA.cjs +1 -0
  25. package/dist/{chunk-25G6B35W.js → chunk-G4EWCRKS.js} +1 -1
  26. package/dist/{chunk-PFLNHD4B.cjs → chunk-G7R5XZRM.cjs} +1 -1
  27. package/dist/{chunk-EXXLUO7L.cjs → chunk-GGEV7LXX.cjs} +1 -1
  28. package/dist/{chunk-VTR75UID.cjs → chunk-HJOZOENU.cjs} +1 -1
  29. package/dist/{chunk-HXTACM3O.cjs → chunk-IRDZVLNZ.cjs} +1 -1
  30. package/dist/chunk-IW73G523.cjs +1 -0
  31. package/dist/chunk-IY5OZAB3.cjs +1 -0
  32. package/dist/{chunk-467VEMJH.js → chunk-J4NCYYGS.js} +1 -1
  33. package/dist/{chunk-RHIBYOFQ.js → chunk-J7JAZAJD.js} +1 -1
  34. package/dist/{chunk-JQZUWBIX.js → chunk-JYNSO7ZY.js} +1 -1
  35. package/dist/{chunk-UUMKL74S.js → chunk-K3UVKYEU.js} +1 -1
  36. package/dist/{chunk-ME5OV5HN.js → chunk-LQ76EDZG.js} +1 -1
  37. package/dist/chunk-MROH35V3.cjs +1 -0
  38. package/dist/chunk-NJSAV73S.js +1 -0
  39. package/dist/{chunk-HXST7RJB.js → chunk-NR44SNYE.js} +1 -1
  40. package/dist/{chunk-BLCANGFS.js → chunk-NXMTWY77.js} +1 -1
  41. package/dist/chunk-OZCQZO2V.cjs +4 -0
  42. package/dist/chunk-Q3NTKN5I.cjs +1 -0
  43. package/dist/{chunk-NSVLG7NY.js → chunk-QDNSC57Z.js} +1 -1
  44. package/dist/{chunk-NUVGETPD.js → chunk-QGXTL5ZH.js} +1 -1
  45. package/dist/{chunk-D43GV6EF.cjs → chunk-QSQDP7L2.cjs} +1 -1
  46. package/dist/{chunk-U4TZO7WV.js → chunk-S5M33A4O.js} +1 -1
  47. package/dist/{chunk-S7GMG4TB.js → chunk-SGTHOQQ2.js} +1 -1
  48. package/dist/chunk-SL3RQOWA.js +1 -0
  49. package/dist/{chunk-NUHOOAUN.cjs → chunk-SZPWZZYG.cjs} +1 -1
  50. package/dist/{chunk-RHE3M2NJ.cjs → chunk-UA4B7JBO.cjs} +1 -1
  51. package/dist/chunk-UQDJF5RR.cjs +1 -0
  52. package/dist/chunk-UTQUYABU.cjs +1 -0
  53. package/dist/{chunk-G72VSVGO.js → chunk-VPW3DRV5.js} +1 -1
  54. package/dist/{chunk-PSWITZK5.js → chunk-W32WALNU.js} +1 -1
  55. package/dist/chunk-XGZ6K753.cjs +1 -0
  56. package/dist/chunk-YFTR64N5.cjs +1 -0
  57. package/dist/chunk-ZFDS7W6B.cjs +1 -0
  58. package/dist/chunk-ZQOLZE6Z.cjs +1 -0
  59. package/dist/conversions/index.cjs +1 -1
  60. package/dist/conversions/index.d.ts +1285 -1285
  61. package/dist/conversions/index.js +1 -1
  62. package/dist/env/index.d.ts +14 -14
  63. package/dist/events/index.cjs +1 -1
  64. package/dist/events/index.d.ts +109 -109
  65. package/dist/events/index.js +1 -1
  66. package/dist/extends-Bk_SBGdT.d.ts +330 -330
  67. package/dist/formatting/index.cjs +1 -1
  68. package/dist/formatting/index.d.ts +855 -855
  69. package/dist/formatting/index.js +1 -1
  70. package/dist/generator/index.cjs +1 -1
  71. package/dist/generator/index.d.ts +155 -155
  72. package/dist/generator/index.js +1 -1
  73. package/dist/if-CvT4R7Kh.d.ts +16 -16
  74. package/dist/index.cjs +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/is-array--YjXV-Wx.d.ts +1084 -1084
  77. package/dist/isPlainObject-BVhBAPHX.d.ts +154 -154
  78. package/dist/never-BfayMBF9.d.ts +64 -64
  79. package/dist/next/index.cjs +5 -5
  80. package/dist/next/index.d.ts +183 -183
  81. package/dist/next/index.js +1 -1
  82. package/dist/next/server/index.cjs +1 -1
  83. package/dist/next/server/index.d.ts +25 -25
  84. package/dist/next/server/index.js +1 -1
  85. package/dist/nils-DMz3kU7M.d.ts +155 -155
  86. package/dist/omit-VvmIsZmX.d.ts +25 -25
  87. package/dist/operations/index.cjs +1 -1
  88. package/dist/operations/index.d.ts +120 -120
  89. package/dist/operations/index.js +1 -1
  90. package/dist/parsers/index.cjs +1 -1
  91. package/dist/parsers/index.d.ts +34 -34
  92. package/dist/parsers/index.js +1 -1
  93. package/dist/predicates/index.cjs +1 -1
  94. package/dist/predicates/index.d.ts +1674 -1674
  95. package/dist/predicates/index.js +1 -1
  96. package/dist/prettify-C4xLcYOP.d.ts +328 -328
  97. package/dist/promise/index.cjs +1 -1
  98. package/dist/promise/index.d.ts +29 -29
  99. package/dist/promise/index.js +1 -1
  100. package/dist/rzl-utils.global.js +1 -1
  101. package/dist/string-XA-til3C.d.ts +318 -318
  102. package/dist/strings/index.cjs +1 -1
  103. package/dist/strings/index.d.ts +690 -690
  104. package/dist/strings/index.js +1 -1
  105. package/dist/stylings/index.cjs +1 -1
  106. package/dist/stylings/index.d.ts +35 -35
  107. package/dist/stylings/index.js +1 -1
  108. package/dist/type-data-DDs-u2kq.d.ts +241 -241
  109. package/dist/types/index.d.ts +3264 -3264
  110. package/dist/urls/index.cjs +1 -1
  111. package/dist/urls/index.d.ts +373 -373
  112. package/dist/urls/index.js +1 -1
  113. package/package.json +1 -1
  114. package/dist/chunk-2JQQQ625.js +0 -1
  115. package/dist/chunk-445TAVT4.cjs +0 -1
  116. package/dist/chunk-6Q4I2RPC.cjs +0 -1
  117. package/dist/chunk-6SMJMZ7G.cjs +0 -1
  118. package/dist/chunk-DFSTVQFI.cjs +0 -1
  119. package/dist/chunk-DYRDBYPF.cjs +0 -1
  120. package/dist/chunk-GAJTFCUA.js +0 -1
  121. package/dist/chunk-GOJNH55O.cjs +0 -1
  122. package/dist/chunk-IJTZWWRJ.cjs +0 -1
  123. package/dist/chunk-ISJ33O2J.cjs +0 -1
  124. package/dist/chunk-JISH2VGG.js +0 -1
  125. package/dist/chunk-KZQB7H4E.cjs +0 -1
  126. package/dist/chunk-LUVV5KSD.cjs +0 -2
  127. package/dist/chunk-MF5Y5K4N.cjs +0 -1
  128. package/dist/chunk-O5VXBNUQ.cjs +0 -4
  129. package/dist/chunk-O7SJR4CY.cjs +0 -1
  130. package/dist/chunk-PYUVKHUF.cjs +0 -1
  131. package/dist/chunk-XFCJDSB2.cjs +0 -1
  132. package/dist/chunk-XOYX4PLZ.cjs +0 -1
  133. package/dist/chunk-Z6FLCEN6.js +0 -1
  134. package/dist/chunk-ZO5364A6.cjs +0 -1
@@ -1 +1 @@
1
- export{b as getInitialsName,a as replaceAt}from'../chunk-TQMZ2LPI.js';export{a as normalizeSpaces,b as normalizeString,c as removeSpaces,d as stripHtmlTags}from'../chunk-HXST7RJB.js';import'../chunk-Z6FLCEN6.js';export{s as capitalizeFirst,t as capitalizeWords,B as slugify,u as toCamelCase,A as toDotCase,y as toKebabCase,x as toLowerCase,w as toPascalCase,v as toPascalCaseSpace,z as toSnakeCase}from'../chunk-MJAW5RAK.js';
1
+ export{b as getInitialsName,a as replaceAt}from'../chunk-33ZLH266.js';export{a as normalizeSpaces,b as normalizeString,c as removeSpaces,d as stripHtmlTags}from'../chunk-NR44SNYE.js';import'../chunk-7CHFAMS2.js';export{s as capitalizeFirst,t as capitalizeWords,B as slugify,u as toCamelCase,A as toDotCase,y as toKebabCase,x as toLowerCase,w as toPascalCase,v as toPascalCaseSpace,z as toSnakeCase}from'../chunk-EWYPSKKM.js';
@@ -1 +1 @@
1
- 'use strict';var chunkGOJNH55O_cjs=require('../chunk-GOJNH55O.cjs');require('../chunk-ISJ33O2J.cjs'),require('../chunk-LVUSFXQS.cjs');Object.defineProperty(exports,"shouldForwardProp",{enumerable:true,get:function(){return chunkGOJNH55O_cjs.a}});
1
+ 'use strict';var chunkYFTR64N5_cjs=require('../chunk-YFTR64N5.cjs');require('../chunk-UQDJF5RR.cjs'),require('../chunk-CII6WWLO.cjs');Object.defineProperty(exports,"shouldForwardProp",{enumerable:true,get:function(){return chunkYFTR64N5_cjs.a}});
@@ -1,41 +1,41 @@
1
1
  /** Converts a union type into an intersection type.
2
- *
3
- * @template U - The union type to be converted.
4
- */
2
+ *
3
+ * @template U - The union type to be converted.
4
+ */
5
5
  type UnionToIntersectionStrict<U>=(U extends never?never:(arg:U)=>never)extends(arg:infer I)=>void?I:never;
6
6
  /** Converts a union type into a tuple type.
7
- *
8
- * @template T - The union type to be converted.
9
- */
7
+ *
8
+ * @template T - The union type to be converted.
9
+ */
10
10
  type UnionToTupleStrict<T>=UnionToIntersectionStrict<T extends never?never:(t:T)=>T>extends(_:never)=>infer W?[...UnionToTupleStrict<Exclude<T,W>>,W]:[];
11
11
  /** ----------------------------------------------------------
12
- * * ***Utility: `shouldForwardProp`.***
13
- * ----------------------------------------------------------
14
- * **Creates a helper for styled-components `shouldForwardProp`.**
15
- * @description
16
- * This utility returns a predicate function that determines whether a given prop
17
- * should be forwarded to the DOM, useful for filtering out internal props (e.g.,
18
- * `$size`, `$active`) so they don't end up as invalid HTML attributes.
19
- * - **Behavior:**
20
- * - Accepts a tuple (strict) of prop keys to exclude from forwarding.
21
- * - Automatically coerces prop names to string for consistent checking.
22
- * - Supports string, number, or symbol keys (via PropertyKey).
23
- * - Will throw an error if the provided `props` argument is not an array.
24
- * @template CustomProps - The type of the component's props.
25
- * @param {UnionToTupleStrict<keyof CustomProps>} props
26
- * The list of prop names (keys of `CustomProps`) to exclude from forwarding.
27
- * @returns {(propName: PropertyKey) => boolean}
28
- * A function that takes a prop name and returns `true` if it should be forwarded, `false` if it should be blocked.
29
- * @throws {TypeError} If `props` is not an array.
30
- * @example
31
- * type Props = { $size: string; color: string; visible: boolean };
32
- * const filter = shouldForwardProp<Props>(["$size"]);
33
- * filter("$size"); // ➔ false (blocked)
34
- * filter("color"); // ➔ true (forwarded)
35
- * @example
36
- * // Using with styled-components:
37
- * styled.div.withConfig({
38
- * shouldForwardProp: shouldForwardProp<CustomProps>(["$internal"])
39
- * })
40
- */
12
+ * * ***Utility: `shouldForwardProp`.***
13
+ * ----------------------------------------------------------
14
+ * **Creates a helper for styled-components `shouldForwardProp`.**
15
+ * @description
16
+ * This utility returns a predicate function that determines whether a given prop
17
+ * should be forwarded to the DOM, useful for filtering out internal props (e.g.,
18
+ * `$size`, `$active`) so they don't end up as invalid HTML attributes.
19
+ * - **Behavior:**
20
+ * - Accepts a tuple (strict) of prop keys to exclude from forwarding.
21
+ * - Automatically coerces prop names to string for consistent checking.
22
+ * - Supports string, number, or symbol keys (via PropertyKey).
23
+ * - Will throw an error if the provided `props` argument is not an array.
24
+ * @template CustomProps - The type of the component's props.
25
+ * @param {UnionToTupleStrict<keyof CustomProps>} props
26
+ * The list of prop names (keys of `CustomProps`) to exclude from forwarding.
27
+ * @returns {(propName: PropertyKey) => boolean}
28
+ * A function that takes a prop name and returns `true` if it should be forwarded, `false` if it should be blocked.
29
+ * @throws {TypeError} If `props` is not an array.
30
+ * @example
31
+ * type Props = { $size: string; color: string; visible: boolean };
32
+ * const filter = shouldForwardProp<Props>(["$size"]);
33
+ * filter("$size"); // ➔ false (blocked)
34
+ * filter("color"); // ➔ true (forwarded)
35
+ * @example
36
+ * // Using with styled-components:
37
+ * styled.div.withConfig({
38
+ * shouldForwardProp: shouldForwardProp<CustomProps>(["$internal"])
39
+ * })
40
+ */
41
41
  declare const shouldForwardProp:<CustomProps>(props:Partial<UnionToTupleStrict<keyof CustomProps>>)=>((propName:keyof CustomProps)=>boolean);export{shouldForwardProp};
@@ -1 +1 @@
1
- export{a as shouldForwardProp}from'../chunk-JQZUWBIX.js';import'../chunk-2JQQQ625.js';import'../chunk-MJAW5RAK.js';
1
+ export{a as shouldForwardProp}from'../chunk-JYNSO7ZY.js';import'../chunk-SL3RQOWA.js';import'../chunk-EWYPSKKM.js';
@@ -1,261 +1,261 @@
1
1
  /** --------------------------------------------------
2
- * * ***AnyFunction.***
3
- * --------------------------------------------------
4
- * A generic type representing **any function**
5
- * with any arguments and any return type.
6
- *
7
- * @example
8
- * const fn: AnyFunction = (a, b) => a + b;
9
- * fn(1, 2);
10
- * // ➔ 3
11
- */
2
+ * * ***AnyFunction.***
3
+ * --------------------------------------------------
4
+ * A generic type representing **any function**
5
+ * with any arguments and any return type.
6
+ *
7
+ * @example
8
+ * const fn: AnyFunction = (a, b) => a + b;
9
+ * fn(1, 2);
10
+ * // ➔ 3
11
+ */
12
12
  type AnyFunction=(...args:any[])=>any;
13
13
  /** --------------------------------------------------
14
- * * ***Represents Node.js built-in core objects.***
15
- * --------------------------------------------------
16
- *
17
- * Includes commonly used Node.js core classes/objects
18
- * that are not plain objects.
19
- *
20
- * Examples:
21
- * - `Buffer`
22
- * - `EventEmitter`
23
- * - `Stream`
24
- * - `URL`
25
- * - `process`
26
- *
27
- * ❌ Excludes plain objects (`{}`) and primitives.
28
- *
29
- * ⚠️ Note:
30
- * This is **not exhaustive** because Node.js has
31
- * many built-in modules, but it covers the main
32
- * runtime objects often encountered.
33
- */
14
+ * * ***Represents Node.js built-in core objects.***
15
+ * --------------------------------------------------
16
+ *
17
+ * Includes commonly used Node.js core classes/objects
18
+ * that are not plain objects.
19
+ *
20
+ * Examples:
21
+ * - `Buffer`
22
+ * - `EventEmitter`
23
+ * - `Stream`
24
+ * - `URL`
25
+ * - `process`
26
+ *
27
+ * ❌ Excludes plain objects (`{}`) and primitives.
28
+ *
29
+ * ⚠️ Note:
30
+ * This is **not exhaustive** because Node.js has
31
+ * many built-in modules, but it covers the main
32
+ * runtime objects often encountered.
33
+ */
34
34
  type NodeBuiltins=Buffer|NodeJS.EventEmitter|NodeJS.ReadableStream|NodeJS.WritableStream|NodeJS.Process|URL;
35
35
  /** --------------------------------------------------
36
- * * ***DataTypes.***
37
- * --------------------------------------------------
38
- * Represents a broad union of commonly used JavaScript data types.
39
- *
40
- * ✅ Includes:
41
- * - Primitive types
42
- * - `object`
43
- * - `null`
44
- * - `undefined`
45
- * - `symbol`
46
- * - Any function signature
47
- *
48
- * @example
49
- * ```ts
50
- * function isValidType(value: DataTypes): boolean {
51
- * return value !== undefined && value !== null;
52
- * }
53
- * ```
54
- */
36
+ * * ***DataTypes.***
37
+ * --------------------------------------------------
38
+ * Represents a broad union of commonly used JavaScript data types.
39
+ *
40
+ * ✅ Includes:
41
+ * - Primitive types
42
+ * - `object`
43
+ * - `null`
44
+ * - `undefined`
45
+ * - `symbol`
46
+ * - Any function signature
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * function isValidType(value: DataTypes): boolean {
51
+ * return value !== undefined && value !== null;
52
+ * }
53
+ * ```
54
+ */
55
55
  type DataTypes=bigint|boolean|AnyFunction|null|number|object|string|symbol|undefined;
56
56
  /** --------------------------------------------------
57
- * * ***DeepReplaceType.***
58
- * --------------------------------------------------
59
- * Recursively traverses an array, tuple, or object (including nested structures)
60
- * and replaces all values of type `Target` with `NewType`.
61
- *
62
- * ✅ Useful for remapping deeply nested arrays, tuples, or records.
63
- *
64
- * @template Arr - The input array, tuple, or object.
65
- * @template Target - The type to match and replace.
66
- * @template NewType - The new type to assign to matched values.
67
- *
68
- * @example
69
- * ```ts
70
- * // Simple tuple
71
- * type A = [number, string, [number]];
72
- * type B = DeepReplaceType<A, number, boolean>;
73
- * // ➔ [boolean, string, [boolean]]
74
- *
75
- * // Nested object
76
- * type Obj = { a: number; b: { c: number; d: string } };
77
- * type ObjReplaced = DeepReplaceType<Obj, number, boolean>;
78
- * // ➔ { a: boolean; b: { c: boolean; d: string } }
79
- *
80
- * // Mixed array and object
81
- * type Mixed = [{ x: number }, { y: string, z: number[] }];
82
- * type MixedReplaced = DeepReplaceType<Mixed, number, boolean>;
83
- * // ➔ [{ x: boolean }, { y: string, z: boolean[] }]
84
- * ```
85
- */
57
+ * * ***DeepReplaceType.***
58
+ * --------------------------------------------------
59
+ * Recursively traverses an array, tuple, or object (including nested structures)
60
+ * and replaces all values of type `Target` with `NewType`.
61
+ *
62
+ * ✅ Useful for remapping deeply nested arrays, tuples, or records.
63
+ *
64
+ * @template Arr - The input array, tuple, or object.
65
+ * @template Target - The type to match and replace.
66
+ * @template NewType - The new type to assign to matched values.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * // Simple tuple
71
+ * type A = [number, string, [number]];
72
+ * type B = DeepReplaceType<A, number, boolean>;
73
+ * // ➔ [boolean, string, [boolean]]
74
+ *
75
+ * // Nested object
76
+ * type Obj = { a: number; b: { c: number; d: string } };
77
+ * type ObjReplaced = DeepReplaceType<Obj, number, boolean>;
78
+ * // ➔ { a: boolean; b: { c: boolean; d: string } }
79
+ *
80
+ * // Mixed array and object
81
+ * type Mixed = [{ x: number }, { y: string, z: number[] }];
82
+ * type MixedReplaced = DeepReplaceType<Mixed, number, boolean>;
83
+ * // ➔ [{ x: boolean }, { y: string, z: boolean[] }]
84
+ * ```
85
+ */
86
86
  type DeepReplaceType<Arr,Target,NewType>=Arr extends Target?NewType:Arr extends object?{[K in keyof Arr]:DeepReplaceType<Arr[K],Target,NewType>;}:Arr;
87
87
  /** --------------------------------------------------
88
- * * ***TypedArray.***
89
- * --------------------------------------------------
90
- * Represents all JavaScript **TypedArray** types used for binary data manipulation.
91
- *
92
- * Includes:
93
- * - `Int8Array`
94
- * - `Uint8Array`
95
- * - `Uint8ClampedArray`
96
- * - `Int16Array`
97
- * - `Uint16Array`
98
- * - `Int32Array`
99
- * - `Uint32Array`
100
- * - `Float32Array`
101
- * - `Float64Array`
102
- * - `BigInt64Array`
103
- * - `BigUint64Array`
104
- */
88
+ * * ***TypedArray.***
89
+ * --------------------------------------------------
90
+ * Represents all JavaScript **TypedArray** types used for binary data manipulation.
91
+ *
92
+ * Includes:
93
+ * - `Int8Array`
94
+ * - `Uint8Array`
95
+ * - `Uint8ClampedArray`
96
+ * - `Int16Array`
97
+ * - `Uint16Array`
98
+ * - `Int32Array`
99
+ * - `Uint32Array`
100
+ * - `Float32Array`
101
+ * - `Float64Array`
102
+ * - `BigInt64Array`
103
+ * - `BigUint64Array`
104
+ */
105
105
  type TypedArray=Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array|BigInt64Array|BigUint64Array;
106
106
  /** --------------------------------------------------
107
- * * ***WebApiObjects.***
108
- * --------------------------------------------------
109
- * Represents common **Web API objects** available in the browser.
110
- *
111
- * Includes:
112
- * - URL: `URL`, `URLSearchParams`
113
- * - Networking: `Request`, `Response`, `Headers`, `WebSocket`
114
- * - Streams: `ReadableStream`, `WritableStream`, `TransformStream`
115
- * - Events: `Event`, `CustomEvent`, `MessageChannel`, `MessagePort`, `MessageEvent`
116
- * - DOM: `HTMLElement`, `Node`, `Document`, `Window`, `CanvasRenderingContext2D`
117
- * - Encoding: `TextEncoder`, `TextDecoder`
118
- * - File: `File`, `FileList`, `ImageBitmap`, `FormData`
119
- * - Abort: `AbortController`, `AbortSignal`
120
- * - Crypto: `CryptoKey`
121
- */
107
+ * * ***WebApiObjects.***
108
+ * --------------------------------------------------
109
+ * Represents common **Web API objects** available in the browser.
110
+ *
111
+ * Includes:
112
+ * - URL: `URL`, `URLSearchParams`
113
+ * - Networking: `Request`, `Response`, `Headers`, `WebSocket`
114
+ * - Streams: `ReadableStream`, `WritableStream`, `TransformStream`
115
+ * - Events: `Event`, `CustomEvent`, `MessageChannel`, `MessagePort`, `MessageEvent`
116
+ * - DOM: `HTMLElement`, `Node`, `Document`, `Window`, `CanvasRenderingContext2D`
117
+ * - Encoding: `TextEncoder`, `TextDecoder`
118
+ * - File: `File`, `FileList`, `ImageBitmap`, `FormData`
119
+ * - Abort: `AbortController`, `AbortSignal`
120
+ * - Crypto: `CryptoKey`
121
+ */
122
122
  type WebApiObjects=URL|URLSearchParams|FormData|Headers|Response|Request|ReadableStream<any>|WritableStream<any>|TransformStream<any,any>|MessageChannel|MessagePort|MessageEvent|Event|CustomEvent|HTMLElement|Node|Document|Window|AbortController|AbortSignal|TextEncoder|TextDecoder|CryptoKey|File|FileList|ImageBitmap|CanvasRenderingContext2D|WebSocket;
123
123
  /** --------------------------------------------------
124
- * * ***IntlObjects.***
125
- * --------------------------------------------------
126
- * Represents all **ECMAScript Internationalization API** objects from `Intl`.
127
- *
128
- * Includes:
129
- * - `Intl.Collator`
130
- * - `Intl.DateTimeFormat`
131
- * - `Intl.NumberFormat`
132
- * - `Intl.RelativeTimeFormat`
133
- * - `Intl.PluralRules`
134
- * - `Intl.ListFormat`
135
- * - `Intl.Locale`
136
- */
124
+ * * ***IntlObjects.***
125
+ * --------------------------------------------------
126
+ * Represents all **ECMAScript Internationalization API** objects from `Intl`.
127
+ *
128
+ * Includes:
129
+ * - `Intl.Collator`
130
+ * - `Intl.DateTimeFormat`
131
+ * - `Intl.NumberFormat`
132
+ * - `Intl.RelativeTimeFormat`
133
+ * - `Intl.PluralRules`
134
+ * - `Intl.ListFormat`
135
+ * - `Intl.Locale`
136
+ */
137
137
  type IntlObjects=Intl.Collator|Intl.DateTimeFormat|Intl.NumberFormat|Intl.RelativeTimeFormat|Intl.PluralRules|Intl.ListFormat|Intl.Locale;
138
138
  /** --------------------------------------------------
139
- * * ***BoxedPrimitivesTypes.***
140
- * --------------------------------------------------
141
- * Represents JavaScript **boxed primitive objects** (object wrappers for primitive values).
142
- *
143
- * Boxed primitives are created using the `new` keyword on primitive wrapper constructors.
144
- *
145
- * ✅ **Includes (object wrappers):**
146
- * - `new Number(123)` → `Number`
147
- * - `new String("hello")` → `String`
148
- * - `new Boolean(true)` → `Boolean`
149
- *
150
- * ❌ **Excludes (primitive values):**
151
- * - `123` → `number`
152
- * - `"hello"` → `string`
153
- * - `true` → `boolean`
154
- *
155
- * ℹ️ **Note:**
156
- * - These are **rarely used directly** in modern JavaScript/TypeScript.
157
- * - However, they exist for completeness and are sometimes relevant
158
- * when distinguishing between **primitive values** and **object wrappers**.
159
- *
160
- * @example
161
- * ```ts
162
- * const a: BoxedPrimitivesTypes = new Number(123); // ✅ valid
163
- * const b: BoxedPrimitivesTypes = new String("abc"); // ✅ valid
164
- * const c: BoxedPrimitivesTypes = new Boolean(false); // ✅ valid
165
- *
166
- * // ❌ Not allowed (primitive values):
167
- * // const x: BoxedPrimitivesTypes = 123;
168
- * // const y: BoxedPrimitivesTypes = "abc";
169
- * // const z: BoxedPrimitivesTypes = true;
170
- * ```
171
- */
139
+ * * ***BoxedPrimitivesTypes.***
140
+ * --------------------------------------------------
141
+ * Represents JavaScript **boxed primitive objects** (object wrappers for primitive values).
142
+ *
143
+ * Boxed primitives are created using the `new` keyword on primitive wrapper constructors.
144
+ *
145
+ * ✅ **Includes (object wrappers):**
146
+ * - `new Number(123)` → `Number`
147
+ * - `new String("hello")` → `String`
148
+ * - `new Boolean(true)` → `Boolean`
149
+ *
150
+ * ❌ **Excludes (primitive values):**
151
+ * - `123` → `number`
152
+ * - `"hello"` → `string`
153
+ * - `true` → `boolean`
154
+ *
155
+ * ℹ️ **Note:**
156
+ * - These are **rarely used directly** in modern JavaScript/TypeScript.
157
+ * - However, they exist for completeness and are sometimes relevant
158
+ * when distinguishing between **primitive values** and **object wrappers**.
159
+ *
160
+ * @example
161
+ * ```ts
162
+ * const a: BoxedPrimitivesTypes = new Number(123); // ✅ valid
163
+ * const b: BoxedPrimitivesTypes = new String("abc"); // ✅ valid
164
+ * const c: BoxedPrimitivesTypes = new Boolean(false); // ✅ valid
165
+ *
166
+ * // ❌ Not allowed (primitive values):
167
+ * // const x: BoxedPrimitivesTypes = 123;
168
+ * // const y: BoxedPrimitivesTypes = "abc";
169
+ * // const z: BoxedPrimitivesTypes = true;
170
+ * ```
171
+ */
172
172
  type BoxedPrimitivesTypes=Number|String|Boolean;
173
173
  /** --------------------------------------------------
174
- * * ***NonPlainObject.***
175
- * --------------------------------------------------
176
- * Represents all known **non-plain object types**,
177
- * i.e., values that are **not** considered a "plain object" (`{ [key: string]: any }`).
178
- *
179
- * ✅ **Includes:**
180
- * - **Functions**
181
- * - **Arrays**
182
- * - **Native objects:** `Date`, `RegExp`, `Map`, `Set`, `WeakMap`, `WeakSet`
183
- * - **Built-in classes & APIs:** `Promise`, `Error`, `ArrayBuffer`, `DataView`
184
- * - **Typed arrays:** `TypedArray`
185
- * - **Browser & Node APIs:** `WebApiObjects`, `IntlObjects`, `NodeBuiltins`
186
- * - **Symbols**
187
- * - **Proxies** (wrapping any object)
188
- * - The global **`Reflect`** object
189
- *
190
- * ❌ **Excludes:**
191
- * - Plain objects (`{ foo: string }`, `Record<string, any>`)
192
- * - `null` and `undefined`
193
- *
194
- * ℹ️ **Note:**
195
- * Use this type when you need to differentiate **plain objects**
196
- * from **all other object-like values**.
197
- *
198
- * @example
199
- * ```ts
200
- * type A = NonPlainObject;
201
- *
202
- * const x: A = new Date(); // ✅ Allowed
203
- * const y: A = [1, 2, 3]; // ✅ Allowed
204
- * const z: A = Promise.resolve(123); // ✅ Allowed
205
- *
206
- * // ❌ Not allowed (plain object):
207
- * // const bad: A = { foo: "bar" };
208
- * ```
209
- */
174
+ * * ***NonPlainObject.***
175
+ * --------------------------------------------------
176
+ * Represents all known **non-plain object types**,
177
+ * i.e., values that are **not** considered a "plain object" (`{ [key: string]: any }`).
178
+ *
179
+ * ✅ **Includes:**
180
+ * - **Functions**
181
+ * - **Arrays**
182
+ * - **Native objects:** `Date`, `RegExp`, `Map`, `Set`, `WeakMap`, `WeakSet`
183
+ * - **Built-in classes & APIs:** `Promise`, `Error`, `ArrayBuffer`, `DataView`
184
+ * - **Typed arrays:** `TypedArray`
185
+ * - **Browser & Node APIs:** `WebApiObjects`, `IntlObjects`, `NodeBuiltins`
186
+ * - **Symbols**
187
+ * - **Proxies** (wrapping any object)
188
+ * - The global **`Reflect`** object
189
+ *
190
+ * ❌ **Excludes:**
191
+ * - Plain objects (`{ foo: string }`, `Record<string, any>`)
192
+ * - `null` and `undefined`
193
+ *
194
+ * ℹ️ **Note:**
195
+ * Use this type when you need to differentiate **plain objects**
196
+ * from **all other object-like values**.
197
+ *
198
+ * @example
199
+ * ```ts
200
+ * type A = NonPlainObject;
201
+ *
202
+ * const x: A = new Date(); // ✅ Allowed
203
+ * const y: A = [1, 2, 3]; // ✅ Allowed
204
+ * const z: A = Promise.resolve(123); // ✅ Allowed
205
+ *
206
+ * // ❌ Not allowed (plain object):
207
+ * // const bad: A = { foo: "bar" };
208
+ * ```
209
+ */
210
210
  type NonPlainObject=BoxedPrimitivesTypes|AnyFunction|Promise<any>|Array<any>|AnObjectNonArray;
211
211
  /** --------------------------------------------------
212
- * * ***AnObjectNonArray.***
213
- * --------------------------------------------------
214
- * Represents all **non-null, non-array, object-like values** in JavaScript/Node.js.
215
- *
216
- * ✅ **Includes:**
217
- * - **Built-in objects:** `Date`, `RegExp`, `Error`, `ArrayBuffer`, `DataView`
218
- * - **Collections:** `Map`, `Set`, `WeakMap`, `WeakSet`
219
- * - **Typed arrays:**
220
- * `Int8Array`, `Uint8Array`, `Uint8ClampedArray`,
221
- * `Int16Array`, `Uint16Array`,
222
- * `Int32Array`, `Uint32Array`,
223
- * `Float32Array`, `Float64Array`,
224
- * `BigInt64Array`, `BigUint64Array`
225
- * - **Browser Web APIs:**
226
- * `URL`, `URLSearchParams`, `FormData`, `Headers`, `Response`, `Request`,
227
- * `ReadableStream`, `WritableStream`, `TransformStream`,
228
- * `MessageChannel`, `MessagePort`, `MessageEvent`,
229
- * `Event`, `CustomEvent`, `HTMLElement`, `Node`, `Document`, `Window`,
230
- * `CanvasRenderingContext2D`,
231
- * `AbortController`, `AbortSignal`,
232
- * `TextEncoder`, `TextDecoder`,
233
- * `CryptoKey`, `File`, `FileList`, `ImageBitmap`, `WebSocket`
234
- * - **ECMAScript Internationalization API objects:**
235
- * `Intl.Collator`, `Intl.DateTimeFormat`, `Intl.NumberFormat`,
236
- * `Intl.RelativeTimeFormat`, `Intl.PluralRules`,
237
- * `Intl.ListFormat`, `Intl.Locale`
238
- * - **Node.js built-ins:** `Buffer`
239
- * - **Symbols**
240
- * - **Proxies** (wrapping any object)
241
- * - The global **`Reflect`** object
242
- *
243
- * ❌ **Excludes:**
244
- * - `null`
245
- * - Arrays (`[]`, `new Array()`)
246
- *
247
- * ℹ️ **Note:**
248
- * Use this type when you need to represent **any object-like value except arrays and `null`**.
249
- *
250
- * @example
251
- * ```ts
252
- * const a: AnObjectNonArray = new Date();
253
- * const b: AnObjectNonArray = new Map();
254
- * const c: AnObjectNonArray = Symbol("id");
255
- *
256
- * // ❌ These are NOT allowed:
257
- * // const x: AnObjectNonArray = null;
258
- * // const y: AnObjectNonArray = [];
259
- * ```
260
- */
212
+ * * ***AnObjectNonArray.***
213
+ * --------------------------------------------------
214
+ * Represents all **non-null, non-array, object-like values** in JavaScript/Node.js.
215
+ *
216
+ * ✅ **Includes:**
217
+ * - **Built-in objects:** `Date`, `RegExp`, `Error`, `ArrayBuffer`, `DataView`
218
+ * - **Collections:** `Map`, `Set`, `WeakMap`, `WeakSet`
219
+ * - **Typed arrays:**
220
+ * `Int8Array`, `Uint8Array`, `Uint8ClampedArray`,
221
+ * `Int16Array`, `Uint16Array`,
222
+ * `Int32Array`, `Uint32Array`,
223
+ * `Float32Array`, `Float64Array`,
224
+ * `BigInt64Array`, `BigUint64Array`
225
+ * - **Browser Web APIs:**
226
+ * `URL`, `URLSearchParams`, `FormData`, `Headers`, `Response`, `Request`,
227
+ * `ReadableStream`, `WritableStream`, `TransformStream`,
228
+ * `MessageChannel`, `MessagePort`, `MessageEvent`,
229
+ * `Event`, `CustomEvent`, `HTMLElement`, `Node`, `Document`, `Window`,
230
+ * `CanvasRenderingContext2D`,
231
+ * `AbortController`, `AbortSignal`,
232
+ * `TextEncoder`, `TextDecoder`,
233
+ * `CryptoKey`, `File`, `FileList`, `ImageBitmap`, `WebSocket`
234
+ * - **ECMAScript Internationalization API objects:**
235
+ * `Intl.Collator`, `Intl.DateTimeFormat`, `Intl.NumberFormat`,
236
+ * `Intl.RelativeTimeFormat`, `Intl.PluralRules`,
237
+ * `Intl.ListFormat`, `Intl.Locale`
238
+ * - **Node.js built-ins:** `Buffer`
239
+ * - **Symbols**
240
+ * - **Proxies** (wrapping any object)
241
+ * - The global **`Reflect`** object
242
+ *
243
+ * ❌ **Excludes:**
244
+ * - `null`
245
+ * - Arrays (`[]`, `new Array()`)
246
+ *
247
+ * ℹ️ **Note:**
248
+ * Use this type when you need to represent **any object-like value except arrays and `null`**.
249
+ *
250
+ * @example
251
+ * ```ts
252
+ * const a: AnObjectNonArray = new Date();
253
+ * const b: AnObjectNonArray = new Map();
254
+ * const c: AnObjectNonArray = Symbol("id");
255
+ *
256
+ * // ❌ These are NOT allowed:
257
+ * // const x: AnObjectNonArray = null;
258
+ * // const y: AnObjectNonArray = [];
259
+ * ```
260
+ */
261
261
  type AnObjectNonArray=Date|RegExp|Map<any,any>|Set<any>|WeakMap<any,any>|WeakSet<any>|Error|ArrayBuffer|DataView|TypedArray|WebApiObjects|IntlObjects|NodeBuiltins|symbol|{[Symbol.toStringTag]:"Proxy";}|typeof Reflect;export type{AnyFunction as A,BoxedPrimitivesTypes as B,DataTypes as D,IntlObjects as I,NonPlainObject as N,TypedArray as T,WebApiObjects as W,AnObjectNonArray as a,DeepReplaceType as b};