@lssm/lib.utils-typescript 1.11.0 → 1.41.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 (126) hide show
  1. package/README.md +5 -0
  2. package/dist/index.js +1 -0
  3. package/dist/lib/AwaitedResult.js +0 -0
  4. package/dist/lib/BrowserNativeObject.js +0 -0
  5. package/dist/lib/DeepInfiniteArray.js +0 -0
  6. package/dist/lib/DeepKeepOnly.js +0 -0
  7. package/dist/lib/DeepKey.js +0 -0
  8. package/dist/lib/DeepMap.js +0 -0
  9. package/dist/lib/DeepNullable.js +0 -0
  10. package/dist/lib/DeepOr.js +0 -0
  11. package/dist/lib/DeepPartial.js +0 -0
  12. package/dist/lib/DeepReplace.js +0 -0
  13. package/dist/lib/DeepReplaceNullByUndefined.js +0 -0
  14. package/dist/lib/DeepValue.js +0 -0
  15. package/dist/lib/DictionaryFromEnum.js +0 -0
  16. package/dist/lib/DictionaryFromEnumMapping.js +0 -0
  17. package/dist/lib/EmptyRecord.js +0 -0
  18. package/dist/lib/Identified.js +0 -0
  19. package/dist/lib/IdentifiedLabel.js +0 -0
  20. package/dist/lib/IsAny.js +0 -0
  21. package/dist/lib/Json.js +0 -0
  22. package/dist/lib/KeepOnly.js +0 -0
  23. package/dist/lib/Maybe.js +0 -0
  24. package/dist/lib/MaybeArray.js +0 -0
  25. package/dist/lib/NestedValue.js +0 -0
  26. package/dist/lib/NonUndefined.js +0 -0
  27. package/dist/lib/Primitive.js +0 -0
  28. package/dist/lib/Replaced.js +0 -0
  29. package/dist/lib/ReverseMap.js +0 -0
  30. package/dist/lib/Satisfies.js +0 -0
  31. package/dist/lib/StringKey.js +0 -0
  32. package/dist/lib/StringKeysOnly.js +0 -0
  33. package/dist/staticShouldNotHappen.js +1 -0
  34. package/package.json +69 -51
  35. package/dist/index.d.mts +0 -31
  36. package/dist/index.mjs +0 -1
  37. package/dist/lib/AwaitedResult.d.mts +0 -5
  38. package/dist/lib/AwaitedResult.d.mts.map +0 -1
  39. package/dist/lib/AwaitedResult.mjs +0 -1
  40. package/dist/lib/BrowserNativeObject.d.mts +0 -5
  41. package/dist/lib/BrowserNativeObject.d.mts.map +0 -1
  42. package/dist/lib/BrowserNativeObject.mjs +0 -1
  43. package/dist/lib/DeepInfiniteArray.d.mts +0 -5
  44. package/dist/lib/DeepInfiniteArray.d.mts.map +0 -1
  45. package/dist/lib/DeepInfiniteArray.mjs +0 -1
  46. package/dist/lib/DeepKeepOnly.d.mts +0 -7
  47. package/dist/lib/DeepKeepOnly.d.mts.map +0 -1
  48. package/dist/lib/DeepKeepOnly.mjs +0 -1
  49. package/dist/lib/DeepKey.d.mts +0 -5
  50. package/dist/lib/DeepKey.d.mts.map +0 -1
  51. package/dist/lib/DeepKey.mjs +0 -1
  52. package/dist/lib/DeepMap.d.mts +0 -10
  53. package/dist/lib/DeepMap.d.mts.map +0 -1
  54. package/dist/lib/DeepMap.mjs +0 -1
  55. package/dist/lib/DeepNullable.d.mts +0 -7
  56. package/dist/lib/DeepNullable.d.mts.map +0 -1
  57. package/dist/lib/DeepNullable.mjs +0 -1
  58. package/dist/lib/DeepOr.d.mts +0 -5
  59. package/dist/lib/DeepOr.d.mts.map +0 -1
  60. package/dist/lib/DeepOr.mjs +0 -1
  61. package/dist/lib/DeepPartial.d.mts +0 -8
  62. package/dist/lib/DeepPartial.d.mts.map +0 -1
  63. package/dist/lib/DeepPartial.mjs +0 -1
  64. package/dist/lib/DeepReplace.d.mts +0 -5
  65. package/dist/lib/DeepReplace.d.mts.map +0 -1
  66. package/dist/lib/DeepReplace.mjs +0 -1
  67. package/dist/lib/DeepReplaceNullByUndefined.d.mts +0 -7
  68. package/dist/lib/DeepReplaceNullByUndefined.d.mts.map +0 -1
  69. package/dist/lib/DeepReplaceNullByUndefined.mjs +0 -1
  70. package/dist/lib/DeepValue.d.mts +0 -7
  71. package/dist/lib/DeepValue.d.mts.map +0 -1
  72. package/dist/lib/DeepValue.mjs +0 -1
  73. package/dist/lib/DictionaryFromEnum.d.mts +0 -5
  74. package/dist/lib/DictionaryFromEnum.d.mts.map +0 -1
  75. package/dist/lib/DictionaryFromEnum.mjs +0 -1
  76. package/dist/lib/DictionaryFromEnumMapping.d.mts +0 -5
  77. package/dist/lib/DictionaryFromEnumMapping.d.mts.map +0 -1
  78. package/dist/lib/DictionaryFromEnumMapping.mjs +0 -1
  79. package/dist/lib/EmptyRecord.d.mts +0 -7
  80. package/dist/lib/EmptyRecord.d.mts.map +0 -1
  81. package/dist/lib/EmptyRecord.mjs +0 -1
  82. package/dist/lib/Identified.d.mts +0 -7
  83. package/dist/lib/Identified.d.mts.map +0 -1
  84. package/dist/lib/Identified.mjs +0 -1
  85. package/dist/lib/IdentifiedLabel.d.mts +0 -9
  86. package/dist/lib/IdentifiedLabel.d.mts.map +0 -1
  87. package/dist/lib/IdentifiedLabel.mjs +0 -1
  88. package/dist/lib/IsAny.d.mts +0 -5
  89. package/dist/lib/IsAny.d.mts.map +0 -1
  90. package/dist/lib/IsAny.mjs +0 -1
  91. package/dist/lib/Json.d.mts +0 -16
  92. package/dist/lib/Json.d.mts.map +0 -1
  93. package/dist/lib/Json.mjs +0 -1
  94. package/dist/lib/KeepOnly.d.mts +0 -5
  95. package/dist/lib/KeepOnly.d.mts.map +0 -1
  96. package/dist/lib/KeepOnly.mjs +0 -1
  97. package/dist/lib/Maybe.d.mts +0 -5
  98. package/dist/lib/Maybe.d.mts.map +0 -1
  99. package/dist/lib/Maybe.mjs +0 -1
  100. package/dist/lib/MaybeArray.d.mts +0 -5
  101. package/dist/lib/MaybeArray.d.mts.map +0 -1
  102. package/dist/lib/MaybeArray.mjs +0 -1
  103. package/dist/lib/NestedValue.d.mts +0 -8
  104. package/dist/lib/NestedValue.d.mts.map +0 -1
  105. package/dist/lib/NestedValue.mjs +0 -1
  106. package/dist/lib/NonUndefined.d.mts +0 -5
  107. package/dist/lib/NonUndefined.d.mts.map +0 -1
  108. package/dist/lib/NonUndefined.mjs +0 -1
  109. package/dist/lib/Primitive.d.mts +0 -7
  110. package/dist/lib/Primitive.d.mts.map +0 -1
  111. package/dist/lib/Primitive.mjs +0 -1
  112. package/dist/lib/Replaced.d.mts +0 -7
  113. package/dist/lib/Replaced.d.mts.map +0 -1
  114. package/dist/lib/Replaced.mjs +0 -1
  115. package/dist/lib/ReverseMap.d.mts +0 -5
  116. package/dist/lib/ReverseMap.d.mts.map +0 -1
  117. package/dist/lib/ReverseMap.mjs +0 -1
  118. package/dist/lib/Satisfies.d.mts +0 -5
  119. package/dist/lib/Satisfies.d.mts.map +0 -1
  120. package/dist/lib/Satisfies.mjs +0 -1
  121. package/dist/lib/StringKey.d.mts +0 -5
  122. package/dist/lib/StringKey.d.mts.map +0 -1
  123. package/dist/lib/StringKey.mjs +0 -1
  124. package/dist/lib/StringKeysOnly.d.mts +0 -7
  125. package/dist/lib/StringKeysOnly.d.mts.map +0 -1
  126. package/dist/lib/StringKeysOnly.mjs +0 -1
package/README.md CHANGED
@@ -56,6 +56,11 @@ const update: DeepPartial<User> = {
56
56
 
57
57
 
58
58
 
59
+
60
+
61
+
62
+
63
+
59
64
 
60
65
 
61
66
 
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ import{staticShouldNotHappen as e}from"./staticShouldNotHappen.js";export{e as staticShouldNotHappen};
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ function e(e){throw Error(`Missing switch value ${e?.toString?.()}`)}export{e as staticShouldNotHappen};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.utils-typescript",
3
- "version": "1.11.0",
3
+ "version": "1.41.0",
4
4
  "scripts": {
5
5
  "clean": "rm -rf dist",
6
6
  "lint": "bun run lint:fix",
@@ -13,65 +13,83 @@
13
13
  "dev": "bun build:bundle --watch"
14
14
  },
15
15
  "devDependencies": {
16
- "@lssm/tool.typescript": "0.11.0",
17
- "@lssm/tool.tsdown": "0.12.0",
18
- "tsdown": "^0.16.6",
16
+ "@lssm/tool.typescript": "workspace:*",
17
+ "@lssm/tool.tsdown": "workspace:*",
18
+ "tsdown": "^0.17.4",
19
19
  "typescript": "^5.9.3"
20
20
  },
21
21
  "type": "module",
22
- "main": "./dist/index.mjs",
23
- "module": "./dist/index.mjs",
22
+ "main": "./dist/index.js",
23
+ "module": "./dist/index.js",
24
24
  "types": "./dist/index.d.mts",
25
25
  "exports": {
26
- ".": "./dist/index.mjs",
27
- "./lib/AwaitedResult": "./dist/lib/AwaitedResult.mjs",
28
- "./lib/BrowserNativeObject": "./dist/lib/BrowserNativeObject.mjs",
29
- "./lib/DeepInfiniteArray": "./dist/lib/DeepInfiniteArray.mjs",
30
- "./lib/DeepKeepOnly": "./dist/lib/DeepKeepOnly.mjs",
31
- "./lib/DeepKey": "./dist/lib/DeepKey.mjs",
32
- "./lib/DeepMap": "./dist/lib/DeepMap.mjs",
33
- "./lib/DeepNullable": "./dist/lib/DeepNullable.mjs",
34
- "./lib/DeepOr": "./dist/lib/DeepOr.mjs",
35
- "./lib/DeepPartial": "./dist/lib/DeepPartial.mjs",
36
- "./lib/DeepReplace": "./dist/lib/DeepReplace.mjs",
37
- "./lib/DeepReplaceNullByUndefined": "./dist/lib/DeepReplaceNullByUndefined.mjs",
38
- "./lib/DeepValue": "./dist/lib/DeepValue.mjs",
39
- "./lib/DictionaryFromEnum": "./dist/lib/DictionaryFromEnum.mjs",
40
- "./lib/DictionaryFromEnumMapping": "./dist/lib/DictionaryFromEnumMapping.mjs",
41
- "./lib/EmptyRecord": "./dist/lib/EmptyRecord.mjs",
42
- "./lib/Identified": "./dist/lib/Identified.mjs",
43
- "./lib/IdentifiedLabel": "./dist/lib/IdentifiedLabel.mjs",
44
- "./lib/IsAny": "./dist/lib/IsAny.mjs",
45
- "./lib/Json": "./dist/lib/Json.mjs",
46
- "./lib/KeepOnly": "./dist/lib/KeepOnly.mjs",
47
- "./lib/Maybe": "./dist/lib/Maybe.mjs",
48
- "./lib/MaybeArray": "./dist/lib/MaybeArray.mjs",
49
- "./lib/NestedValue": "./dist/lib/NestedValue.mjs",
50
- "./lib/NonUndefined": "./dist/lib/NonUndefined.mjs",
51
- "./lib/Primitive": "./dist/lib/Primitive.mjs",
52
- "./lib/Replaced": "./dist/lib/Replaced.mjs",
53
- "./lib/ReverseMap": "./dist/lib/ReverseMap.mjs",
54
- "./lib/Satisfies": "./dist/lib/Satisfies.mjs",
55
- "./lib/StringKey": "./dist/lib/StringKey.mjs",
56
- "./lib/StringKeysOnly": "./dist/lib/StringKeysOnly.mjs",
26
+ ".": "./src/index.ts",
27
+ "./lib/AwaitedResult": "./src/lib/AwaitedResult.ts",
28
+ "./lib/BrowserNativeObject": "./src/lib/BrowserNativeObject.ts",
29
+ "./lib/DeepInfiniteArray": "./src/lib/DeepInfiniteArray.ts",
30
+ "./lib/DeepKeepOnly": "./src/lib/DeepKeepOnly.ts",
31
+ "./lib/DeepKey": "./src/lib/DeepKey.ts",
32
+ "./lib/DeepMap": "./src/lib/DeepMap.ts",
33
+ "./lib/DeepNullable": "./src/lib/DeepNullable.ts",
34
+ "./lib/DeepOr": "./src/lib/DeepOr.ts",
35
+ "./lib/DeepPartial": "./src/lib/DeepPartial.ts",
36
+ "./lib/DeepReplace": "./src/lib/DeepReplace.ts",
37
+ "./lib/DeepReplaceNullByUndefined": "./src/lib/DeepReplaceNullByUndefined.ts",
38
+ "./lib/DeepValue": "./src/lib/DeepValue.ts",
39
+ "./lib/DictionaryFromEnum": "./src/lib/DictionaryFromEnum.ts",
40
+ "./lib/DictionaryFromEnumMapping": "./src/lib/DictionaryFromEnumMapping.ts",
41
+ "./lib/EmptyRecord": "./src/lib/EmptyRecord.ts",
42
+ "./lib/Identified": "./src/lib/Identified.ts",
43
+ "./lib/IdentifiedLabel": "./src/lib/IdentifiedLabel.ts",
44
+ "./lib/IsAny": "./src/lib/IsAny.ts",
45
+ "./lib/Json": "./src/lib/Json.ts",
46
+ "./lib/KeepOnly": "./src/lib/KeepOnly.ts",
47
+ "./lib/Maybe": "./src/lib/Maybe.ts",
48
+ "./lib/MaybeArray": "./src/lib/MaybeArray.ts",
49
+ "./lib/NestedValue": "./src/lib/NestedValue.ts",
50
+ "./lib/NonUndefined": "./src/lib/NonUndefined.ts",
51
+ "./lib/Primitive": "./src/lib/Primitive.ts",
52
+ "./lib/Replaced": "./src/lib/Replaced.ts",
53
+ "./lib/ReverseMap": "./src/lib/ReverseMap.ts",
54
+ "./lib/Satisfies": "./src/lib/Satisfies.ts",
55
+ "./lib/StringKey": "./src/lib/StringKey.ts",
56
+ "./lib/StringKeysOnly": "./src/lib/StringKeysOnly.ts",
57
57
  "./*": "./*"
58
58
  },
59
59
  "publishConfig": {
60
60
  "exports": {
61
- ".": {
62
- "types": "./dist/index.d.ts",
63
- "import": "./dist/index.js",
64
- "require": "./dist/index.cjs",
65
- "default": "./dist/index.js"
66
- },
67
- "./*": {
68
- "types": "./dist/*.d.ts",
69
- "import": "./dist/*.js",
70
- "require": "./dist/*.cjs",
71
- "default": "./dist/*.js"
72
- },
73
- "./*.css": "./dist/*.css",
74
- "./package.json": "./package.json"
61
+ ".": "./dist/index.js",
62
+ "./lib/AwaitedResult": "./dist/lib/AwaitedResult.js",
63
+ "./lib/BrowserNativeObject": "./dist/lib/BrowserNativeObject.js",
64
+ "./lib/DeepInfiniteArray": "./dist/lib/DeepInfiniteArray.js",
65
+ "./lib/DeepKeepOnly": "./dist/lib/DeepKeepOnly.js",
66
+ "./lib/DeepKey": "./dist/lib/DeepKey.js",
67
+ "./lib/DeepMap": "./dist/lib/DeepMap.js",
68
+ "./lib/DeepNullable": "./dist/lib/DeepNullable.js",
69
+ "./lib/DeepOr": "./dist/lib/DeepOr.js",
70
+ "./lib/DeepPartial": "./dist/lib/DeepPartial.js",
71
+ "./lib/DeepReplace": "./dist/lib/DeepReplace.js",
72
+ "./lib/DeepReplaceNullByUndefined": "./dist/lib/DeepReplaceNullByUndefined.js",
73
+ "./lib/DeepValue": "./dist/lib/DeepValue.js",
74
+ "./lib/DictionaryFromEnum": "./dist/lib/DictionaryFromEnum.js",
75
+ "./lib/DictionaryFromEnumMapping": "./dist/lib/DictionaryFromEnumMapping.js",
76
+ "./lib/EmptyRecord": "./dist/lib/EmptyRecord.js",
77
+ "./lib/Identified": "./dist/lib/Identified.js",
78
+ "./lib/IdentifiedLabel": "./dist/lib/IdentifiedLabel.js",
79
+ "./lib/IsAny": "./dist/lib/IsAny.js",
80
+ "./lib/Json": "./dist/lib/Json.js",
81
+ "./lib/KeepOnly": "./dist/lib/KeepOnly.js",
82
+ "./lib/Maybe": "./dist/lib/Maybe.js",
83
+ "./lib/MaybeArray": "./dist/lib/MaybeArray.js",
84
+ "./lib/NestedValue": "./dist/lib/NestedValue.js",
85
+ "./lib/NonUndefined": "./dist/lib/NonUndefined.js",
86
+ "./lib/Primitive": "./dist/lib/Primitive.js",
87
+ "./lib/Replaced": "./dist/lib/Replaced.js",
88
+ "./lib/ReverseMap": "./dist/lib/ReverseMap.js",
89
+ "./lib/Satisfies": "./dist/lib/Satisfies.js",
90
+ "./lib/StringKey": "./dist/lib/StringKey.js",
91
+ "./lib/StringKeysOnly": "./dist/lib/StringKeysOnly.js",
92
+ "./*": "./*"
75
93
  },
76
94
  "access": "public"
77
95
  },
package/dist/index.d.mts DELETED
@@ -1,31 +0,0 @@
1
- import { AwaitedResult } from "./lib/AwaitedResult.mjs";
2
- import { BrowserNativeObject } from "./lib/BrowserNativeObject.mjs";
3
- import { DeepInfiniteArray } from "./lib/DeepInfiniteArray.mjs";
4
- import { KeepOnly } from "./lib/KeepOnly.mjs";
5
- import { DeepKeepOnly } from "./lib/DeepKeepOnly.mjs";
6
- import { DeepKey } from "./lib/DeepKey.mjs";
7
- import { IsAny } from "./lib/IsAny.mjs";
8
- import { NestedValue } from "./lib/NestedValue.mjs";
9
- import { NonUndefined } from "./lib/NonUndefined.mjs";
10
- import { DeepMap } from "./lib/DeepMap.mjs";
11
- import { DeepOr } from "./lib/DeepOr.mjs";
12
- import { DeepNullable } from "./lib/DeepNullable.mjs";
13
- import { DeepPartial } from "./lib/DeepPartial.mjs";
14
- import { DeepReplace } from "./lib/DeepReplace.mjs";
15
- import { DeepReplaceNullByUndefined } from "./lib/DeepReplaceNullByUndefined.mjs";
16
- import { DeepValue } from "./lib/DeepValue.mjs";
17
- import { DictionaryFromEnum } from "./lib/DictionaryFromEnum.mjs";
18
- import { DictionaryFromEnumMapping } from "./lib/DictionaryFromEnumMapping.mjs";
19
- import { AnyRecord, EmptyRecord, UnknownRecord } from "./lib/EmptyRecord.mjs";
20
- import { Identified } from "./lib/Identified.mjs";
21
- import { IdentifiedLabel } from "./lib/IdentifiedLabel.mjs";
22
- import { ExtendedJsonObject, JSONArray, JSONObject, JSONValue, NonJsonArray, NonJsonObject, NonJsonValue, PrimitiveJSONValue } from "./lib/Json.mjs";
23
- import { Maybe } from "./lib/Maybe.mjs";
24
- import { MaybeArray } from "./lib/MaybeArray.mjs";
25
- import { Primitive } from "./lib/Primitive.mjs";
26
- import { Replaced } from "./lib/Replaced.mjs";
27
- import { ReverseMap } from "./lib/ReverseMap.mjs";
28
- import { Satisfies } from "./lib/Satisfies.mjs";
29
- import { StringKey } from "./lib/StringKey.mjs";
30
- import { StringKeysOnly } from "./lib/StringKeysOnly.mjs";
31
- export { AnyRecord, AwaitedResult, BrowserNativeObject, DeepInfiniteArray, DeepKeepOnly, DeepKey, DeepMap, DeepNullable, DeepOr, DeepPartial, DeepReplace, DeepReplaceNullByUndefined, DeepValue, DictionaryFromEnum, DictionaryFromEnumMapping, EmptyRecord, ExtendedJsonObject, Identified, IdentifiedLabel, IsAny, JSONArray, JSONObject, JSONValue, KeepOnly, Maybe, MaybeArray, NestedValue, NonJsonArray, NonJsonObject, NonJsonValue, NonUndefined, Primitive, PrimitiveJSONValue, Replaced, ReverseMap, Satisfies, StringKey, StringKeysOnly, UnknownRecord };
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/AwaitedResult.d.ts
2
- type AwaitedResult<T extends (...args: any) => any> = Awaited<ReturnType<T>>;
3
- //#endregion
4
- export { AwaitedResult };
5
- //# sourceMappingURL=AwaitedResult.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AwaitedResult.d.mts","names":[],"sources":["../../src/lib/AwaitedResult.ts"],"sourcesContent":[],"mappings":";KACY,iDAAiD,QAC3D,WAAW"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/BrowserNativeObject.d.ts
2
- declare type BrowserNativeObject = Date | FileList | File;
3
- //#endregion
4
- export { BrowserNativeObject };
5
- //# sourceMappingURL=BrowserNativeObject.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrowserNativeObject.d.mts","names":[],"sources":["../../src/lib/BrowserNativeObject.ts"],"sourcesContent":[],"mappings":";aAAoB,mBAAA,GAAsB,OAAO,WAAW"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/DeepInfiniteArray.d.ts
2
- declare type DeepInfiniteArray<T> = (T | DeepInfiniteArray<T>)[];
3
- //#endregion
4
- export { DeepInfiniteArray };
5
- //# sourceMappingURL=DeepInfiniteArray.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepInfiniteArray.d.mts","names":[],"sources":["../../src/lib/DeepInfiniteArray.ts"],"sourcesContent":[],"mappings":";aAAoB,wBAAwB,IAAI,kBAAkB"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,7 +0,0 @@
1
- import { KeepOnly } from "./KeepOnly.mjs";
2
-
3
- //#region src/lib/DeepKeepOnly.d.ts
4
- type DeepKeepOnly<T, KeepType> = T | (T extends (infer U)[] ? KeepOnly<U, KeepType>[] : T extends Map<infer K, infer V> ? Map<KeepOnly<K, KeepType>, KeepOnly<V, KeepType>> : T extends Set<infer M> ? Set<KeepOnly<M, KeepType>> : KeepOnly<T, KeepType>);
5
- //#endregion
6
- export { DeepKeepOnly };
7
- //# sourceMappingURL=DeepKeepOnly.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepKeepOnly.d.mts","names":[],"sources":["../../src/lib/DeepKeepOnly.ts"],"sourcesContent":[],"mappings":";;;KAEY,4BACR,KACC,wBACG,SAAS,GAAG,cACZ,UAAU,wBACR,IAAI,SAAS,GAAG,WAAW,SAAS,GAAG,aACvC,UAAU,eACR,IAAI,SAAS,GAAG,aAChB,SAAS,GAAG"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/DeepKey.d.ts
2
- type DeepKey<T, K extends keyof T = keyof T> = K extends string | number ? T[K] extends infer R ? `${K}` | (R extends Record<string, unknown> ? `${K}.${DeepKey<R>}` : never) : never : never;
3
- //#endregion
4
- export { DeepKey };
5
- //# sourceMappingURL=DeepKey.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepKey.d.mts","names":[],"sources":["../../src/lib/DeepKey.ts"],"sourcesContent":[],"mappings":";KAAY,2BAA2B,UAAU,KAAK,4BAClD,EAAE,wBAEO,OACF,UAAU,6BAA6B,KAAK,QAAQ"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,10 +0,0 @@
1
- import { BrowserNativeObject } from "./BrowserNativeObject.mjs";
2
- import { IsAny } from "./IsAny.mjs";
3
- import { NestedValue } from "./NestedValue.mjs";
4
- import { NonUndefined } from "./NonUndefined.mjs";
5
-
6
- //#region src/lib/DeepMap.d.ts
7
- declare type DeepMap<T, TValue> = IsAny<T> extends true ? any : T extends BrowserNativeObject | NestedValue ? TValue : T extends object ? { [K in keyof T]: DeepMap<NonUndefined<T[K]>, TValue> } : TValue;
8
- //#endregion
9
- export { DeepMap };
10
- //# sourceMappingURL=DeepMap.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepMap.d.mts","names":[],"sources":["../../src/lib/DeepMap.ts"],"sourcesContent":[],"mappings":";;;;;;aAKoB,qBAClB,MAAM,wBAGF,UAAU,sBAAsB,cAC9B,SACA,iCAEgB,IAAI,QAAQ,aAAa,EAAE,KAAK,SARxD,GAUU,MAVU"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,7 +0,0 @@
1
- import { DeepOr } from "./DeepOr.mjs";
2
-
3
- //#region src/lib/DeepNullable.d.ts
4
- type DeepNullable<T> = DeepOr<T, null>;
5
- //#endregion
6
- export { DeepNullable };
7
- //# sourceMappingURL=DeepNullable.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepNullable.d.mts","names":[],"sources":["../../src/lib/DeepNullable.ts"],"sourcesContent":[],"mappings":";;;KAEY,kBAAkB,OAAO"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/DeepOr.d.ts
2
- type DeepOr<T, OrValue> = T | (T extends (infer U)[] ? DeepOr<U, OrValue>[] : T extends Map<infer K, infer V> ? Map<DeepOr<K, OrValue>, DeepOr<V, OrValue>> : T extends Set<infer M> ? Set<DeepOr<M, OrValue>> : T extends object ? { [K in keyof T]: DeepOr<T[K], OrValue> | OrValue } : T);
3
- //#endregion
4
- export { DeepOr };
5
- //# sourceMappingURL=DeepOr.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepOr.d.mts","names":[],"sources":["../../src/lib/DeepOr.ts"],"sourcesContent":[],"mappings":";KAAY,qBACR,KACC,wBACG,OAAO,GAAG,aACV,UAAU,wBACR,IAAI,OAAO,GAAG,UAAU,OAAO,GAAG,YAClC,UAAU,eACR,IAAI,OAAO,GAAG,YACd,2BARA,MAUgB,CAVV,GAUc,MAVd,CAUqB,CAVrB,CAUuB,CAVvB,CAAA,EAU2B,OAV3B,CAAA,GAUsC,OAVtC,EACd,GAWU,CAXV,CAAA"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,8 +0,0 @@
1
- //#region src/lib/DeepPartial.d.ts
2
- /**
3
- * Same as Partial<T> but goes deeper and makes Partial<T> all its properties and sub-properties.
4
- */
5
- type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P] };
6
- //#endregion
7
- export { DeepPartial };
8
- //# sourceMappingURL=DeepPartial.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepPartial.d.mts","names":[],"sources":["../../src/lib/DeepPartial.ts"],"sourcesContent":[],"mappings":";;AAiBA;;AACmB,KADP,WACO,CAAA,CAAA,CAAA,GAAA,QAAE,MAAP,CAAO,IAAF,CAAE,CAAA,CAAA,CAAA,SAAA,MAAA,GAAoB,WAApB,CAAgC,CAAhC,CAAkC,CAAlC,CAAA,CAAA,GAAwC,CAAxC,CAA0C,CAA1C,CAAA,EAAgC"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/DeepReplace.d.ts
2
- type DeepReplace<T, Search, Replace> = T extends (infer ArrayItemT)[] ? DeepReplace<ArrayItemT, Search, Replace>[] : T extends Map<infer MapKey, infer MapT> ? Map<DeepReplace<MapKey, Search, Replace>, DeepReplace<MapT, Search, Replace>> : T extends Set<infer SetT> ? Set<DeepReplace<SetT, Search, Replace>> : T extends object ? { [ObjKey in keyof T]: DeepReplace<T[ObjKey], Search, Replace> } : T extends Search ? Replace : T;
3
- //#endregion
4
- export { DeepReplace };
5
- //# sourceMappingURL=DeepReplace.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepReplace.d.mts","names":[],"sources":["../../src/lib/DeepReplace.ts"],"sourcesContent":[],"mappings":";KAAY,kCAAkC,iCAC1C,YAAY,YAAY,QAAQ,aAChC,UAAU,gCACR,IACE,YAAY,QAAQ,QAAQ,UAC5B,YAAY,MAAM,QAAQ,YAE5B,UAAU,kBACR,IAAI,YAAY,MAAM,QAAQ,YAC9B,gCATI,MAWiB,CAXN,GAWU,WAXV,CAWsB,CAXtB,CAWwB,MAXxB,CAAA,EAWiC,MAXjC,EAWyC,OAXzC,CAAA,EAAuB,GAapC,CAboC,SAa1B,MAb0B,GAclC,OAdkC,GAelC,CAfkC"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,7 +0,0 @@
1
- import { DeepReplace } from "./DeepReplace.mjs";
2
-
3
- //#region src/lib/DeepReplaceNullByUndefined.d.ts
4
- type DeepReplaceNullByUndefined<T> = DeepReplace<T, null, undefined>;
5
- //#endregion
6
- export { DeepReplaceNullByUndefined };
7
- //# sourceMappingURL=DeepReplaceNullByUndefined.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepReplaceNullByUndefined.d.mts","names":[],"sources":["../../src/lib/DeepReplaceNullByUndefined.ts"],"sourcesContent":[],"mappings":";;;KAEY,gCAAgC,YAAY"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,7 +0,0 @@
1
- import { DeepKey } from "./DeepKey.mjs";
2
-
3
- //#region src/lib/DeepValue.d.ts
4
- type DeepValue<T, P extends DeepKey<T>> = P extends `${infer K}.${infer Rest}` ? T[(K extends `${infer R extends number}` ? R : K) & keyof T] extends infer S ? S extends never ? never : Rest extends DeepKey<S> ? DeepValue<S, Rest> : never : never : T[(P extends `${infer R extends number}` ? R : P) & keyof T];
5
- //#endregion
6
- export { DeepValue };
7
- //# sourceMappingURL=DeepValue.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepValue.d.mts","names":[],"sources":["../../src/lib/DeepValue.ts"],"sourcesContent":[],"mappings":";;;KAEY,uBAEA,QAAQ,MAChB,uCACA,GAAG,wCAAwC,IAAI,WAAW,qBACxD,0BAEE,aAAa,QAAQ,KACnB,UAAU,GAAG,wBAGnB,GAAG,wCAAwC,IAAI,WAAW"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/DictionaryFromEnum.d.ts
2
- type DictionaryFromEnum<Enum, ObjMapping> = Record<keyof Enum, ObjMapping>;
3
- //#endregion
4
- export { DictionaryFromEnum };
5
- //# sourceMappingURL=DictionaryFromEnum.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DictionaryFromEnum.d.mts","names":[],"sources":["../../src/lib/DictionaryFromEnum.ts"],"sourcesContent":[],"mappings":";KAAY,uCAAuC,aAC3C,MACN"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/DictionaryFromEnumMapping.d.ts
2
- type DictionaryFromEnumMapping<Enum, Mapped, Mapping extends Record<keyof Enum, Mapped>> = { [k in keyof Enum]: Mapping[k] };
3
- //#endregion
4
- export { DictionaryFromEnumMapping };
5
- //# sourceMappingURL=DictionaryFromEnumMapping.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DictionaryFromEnumMapping.d.mts","names":[],"sources":["../../src/lib/DictionaryFromEnumMapping.ts"],"sourcesContent":[],"mappings":";KAAY,wDAGM,aAAa,MAAM,mBAHzB,MAKE,IALF,GAKS,OALT,CAKiB,CALQ,CAAA,EAGN"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,7 +0,0 @@
1
- //#region src/lib/EmptyRecord.d.ts
2
- type EmptyRecord = Record<string, never>;
3
- type UnknownRecord = Record<string, unknown>;
4
- type AnyRecord = Record<string, any>;
5
- //#endregion
6
- export { AnyRecord, EmptyRecord, UnknownRecord };
7
- //# sourceMappingURL=EmptyRecord.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmptyRecord.d.mts","names":[],"sources":["../../src/lib/EmptyRecord.ts"],"sourcesContent":[],"mappings":";KAAY,WAAA,GAAc;AAAd,KACA,aAAA,GAAgB,MADF,CAAA,MAAM,EAAA,OAAA,CAAA;AACpB,KAEA,SAAA,GAAY,MAFC,CAAA,MAAG,EAAM,GAAA,CAAA"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,7 +0,0 @@
1
- //#region src/lib/Identified.d.ts
2
- interface Identified {
3
- id: string;
4
- }
5
- //#endregion
6
- export { Identified };
7
- //# sourceMappingURL=Identified.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Identified.d.mts","names":[],"sources":["../../src/lib/Identified.ts"],"sourcesContent":[],"mappings":";UAAiB,UAAA;EAAA,EAAA,EAAA,MAAA"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,9 +0,0 @@
1
- import { Identified } from "./Identified.mjs";
2
-
3
- //#region src/lib/IdentifiedLabel.d.ts
4
- type IdentifiedLabel = Identified & {
5
- label: string;
6
- };
7
- //#endregion
8
- export { IdentifiedLabel };
9
- //# sourceMappingURL=IdentifiedLabel.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IdentifiedLabel.d.mts","names":[],"sources":["../../src/lib/IdentifiedLabel.ts"],"sourcesContent":[],"mappings":";;;KAEY,eAAA,GAAkB;;AAA9B,CAAA"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/IsAny.d.ts
2
- declare type IsAny<T> = 0 extends 1 & T ? true : false;
3
- //#endregion
4
- export { IsAny };
5
- //# sourceMappingURL=IsAny.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IsAny.d.mts","names":[],"sources":["../../src/lib/IsAny.ts"],"sourcesContent":[],"mappings":";aAAoB,yBAAyB"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,16 +0,0 @@
1
- //#region src/lib/Json.d.ts
2
- declare type PrimitiveJSONValue = string | number | boolean | undefined | null;
3
- declare type JSONValue = PrimitiveJSONValue | JSONArray | JSONObject;
4
- interface JSONArray extends Array<JSONValue> {}
5
- interface JSONObject {
6
- [key: string]: JSONValue;
7
- }
8
- declare type NonJsonValue<ExtraTypes> = PrimitiveJSONValue | NonJsonArray<ExtraTypes> | NonJsonObject<ExtraTypes> | ExtraTypes;
9
- interface NonJsonArray<ExtraTypes> extends Array<NonJsonValue<ExtraTypes>> {}
10
- interface NonJsonObject<ExtraTypes> {
11
- [key: string]: NonJsonValue<ExtraTypes>;
12
- }
13
- type ExtendedJsonObject = NonJsonObject<bigint | Date>;
14
- //#endregion
15
- export { ExtendedJsonObject, JSONArray, JSONObject, JSONValue, NonJsonArray, NonJsonObject, NonJsonValue, PrimitiveJSONValue };
16
- //# sourceMappingURL=Json.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Json.d.mts","names":[],"sources":["../../src/lib/Json.ts"],"sourcesContent":[],"mappings":";aAAoB,kBAAA;AAAA,aAMA,SAAA,GAAY,kBANM,GAMe,SANf,GAM2B,UAN3B;AAMlB,UAGH,SAAA,SAAkB,KAHN,CAGY,SAHZ,CAAA,CAAA;AAAwB,UAKpC,UAAA,CALoC;EAAY,CAAA,GAAA,EAAA,MAAA,CAAA,EAMhD,SANgD;;AAGhD,aAMG,YANqB,CAAA,UAAN,CAAA,GAO/B,kBAPoC,GAQpC,YARoC,CAQvB,UARuB,CAAA,GASpC,aAToC,CAStB,UATsB,CAAA,GAUpC,UAVoC;AAEvB,UAWA,YAVA,CAAA,UAAS,CAAA,SAWhB,KAXgB,CAWV,YAXU,CAWG,UAXH,CAAA,CAAA,CAAA,CAG1B;AACI,UASa,aATb,CAAA,UAAA,CAAA,CAAA;EACa,CAAA,GAAA,EAAA,MAAA,CAAA,EASA,YATA,CASa,UATb,CAAA;;AACC,KAWN,kBAAA,GAAqB,aAXf,CAAA,MAAA,GAWsC,IAXtC,CAAA"}
package/dist/lib/Json.mjs DELETED
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/KeepOnly.d.ts
2
- type KeepOnly<T, KeepType> = T extends object ? { [K in keyof T]: KeepOnly<T[K], KeepType> } : T extends KeepType ? T : never;
3
- //#endregion
4
- export { KeepOnly };
5
- //# sourceMappingURL=KeepOnly.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KeepOnly.d.mts","names":[],"sources":["../../src/lib/KeepOnly.ts"],"sourcesContent":[],"mappings":";KAAY,wBAAwB,2BAAxB,MAEM,CAFE,GAEE,QAFF,CAEW,CAFX,CAEa,CAFb,CAAA,EAEiB,QAFjB,CAAA,EAAgB,GAIhC,CAJgC,SAItB,QAJsB,GAK9B,CAL8B,GAAA,KAAA"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/Maybe.d.ts
2
- type Maybe<T> = T | null;
3
- //#endregion
4
- export { Maybe };
5
- //# sourceMappingURL=Maybe.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Maybe.d.mts","names":[],"sources":["../../src/lib/Maybe.ts"],"sourcesContent":[],"mappings":";KAAY,WAAW"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/MaybeArray.d.ts
2
- type MaybeArray<T> = T | T[];
3
- //#endregion
4
- export { MaybeArray };
5
- //# sourceMappingURL=MaybeArray.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MaybeArray.d.mts","names":[],"sources":["../../src/lib/MaybeArray.ts"],"sourcesContent":[],"mappings":";KAAY,gBAAgB,IAAI"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,8 +0,0 @@
1
- //#region src/lib/NestedValue.d.ts
2
- declare const $NestedValue: unique symbol;
3
- declare type NestedValue<TValue extends object = object> = {
4
- [$NestedValue]: never;
5
- } & TValue;
6
- //#endregion
7
- export { NestedValue };
8
- //# sourceMappingURL=NestedValue.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NestedValue.d.mts","names":[],"sources":["../../src/lib/NestedValue.ts"],"sourcesContent":[],"mappings":";cAAc;AAAA,aAEM,WAFqB,CAAA,eAAA,MAAA,GAAA,MAAA,CAAA,GAAA;EAErB,CACjB,YAAA,CAD4B,EAAA,KAAA;IAE3B"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/NonUndefined.d.ts
2
- declare type NonUndefined<T> = T extends undefined ? never : T;
3
- //#endregion
4
- export { NonUndefined };
5
- //# sourceMappingURL=NonUndefined.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NonUndefined.d.mts","names":[],"sources":["../../src/lib/NonUndefined.ts"],"sourcesContent":[],"mappings":";aAAoB,kBAAkB,8BAA8B"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,7 +0,0 @@
1
- import { PrimitiveJSONValue } from "./Json.mjs";
2
-
3
- //#region src/lib/Primitive.d.ts
4
- declare type Primitive = PrimitiveJSONValue | symbol | bigint;
5
- //#endregion
6
- export { Primitive };
7
- //# sourceMappingURL=Primitive.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Primitive.d.mts","names":[],"sources":["../../src/lib/Primitive.ts"],"sourcesContent":[],"mappings":";;;aAEoB,SAAA,GAAY"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,7 +0,0 @@
1
- import { Primitive } from "./Primitive.mjs";
2
-
3
- //#region src/lib/Replaced.d.ts
4
- type Replaced<T, TReplace, TWith, TKeep = Primitive> = T extends TReplace | TKeep ? T extends TReplace ? TWith | Exclude<T, TReplace> : T : { [P in keyof T]: Replaced<T[P], TReplace, TWith, TKeep> };
5
- //#endregion
6
- export { Replaced };
7
- //# sourceMappingURL=Replaced.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Replaced.d.mts","names":[],"sources":["../../src/lib/Replaced.ts"],"sourcesContent":[],"mappings":";;;KAGY,qCAAqC,aAAa,UAC1D,WACA,QACA,UAAU,WACR,QAAQ,QAAQ,GAAG,YACnB,kBAEY,IAAI,SAAS,EAAE,IAAI,UAAU,OAAO,QAPtD"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/ReverseMap.d.ts
2
- type ReverseMap<T extends Record<keyof T, keyof any>> = { [K in keyof T as T[K]]: K };
3
- //#endregion
4
- export { ReverseMap };
5
- //# sourceMappingURL=ReverseMap.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReverseMap.d.mts","names":[],"sources":["../../src/lib/ReverseMap.ts"],"sourcesContent":[],"mappings":";KACY,qBAAqB,aAAa,yBAAlC,MACE,CADQ,IACH,CADG,CACD,CADC,CAAA,GACI,CADJ,EAAwB"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/Satisfies.d.ts
2
- declare type Satisfies<ConstraintShape, ToValidate> = ConstraintShape extends ConstraintShape ? ToValidate : never;
3
- //#endregion
4
- export { Satisfies };
5
- //# sourceMappingURL=Satisfies.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Satisfies.d.mts","names":[],"sources":["../../src/lib/Satisfies.ts"],"sourcesContent":[],"mappings":";aAAoB,yCAClB,wBAAwB,kBAAkB"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,5 +0,0 @@
1
- //#region src/lib/StringKey.d.ts
2
- type StringKey<T> = { [K in keyof T]: T[K] extends string ? K : never }[keyof T];
3
- //#endregion
4
- export { StringKey };
5
- //# sourceMappingURL=StringKey.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StringKey.d.mts","names":[],"sources":["../../src/lib/StringKey.ts"],"sourcesContent":[],"mappings":";KAAY,uBAAA,MACE,CADO,GACH,CADG,CACD,CADC,CAAA,SAAA,MAAA,GACmB,CADnB,GAAA,KAAA,EACP,CAAA,MACN,CADM,CAAA"}
@@ -1 +0,0 @@
1
- export{};
@@ -1,7 +0,0 @@
1
- import { StringKey } from "./StringKey.mjs";
2
-
3
- //#region src/lib/StringKeysOnly.d.ts
4
- type StringKeysOnly<T> = Pick<T, StringKey<T>>;
5
- //#endregion
6
- export { StringKeysOnly };
7
- //# sourceMappingURL=StringKeysOnly.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StringKeysOnly.d.mts","names":[],"sources":["../../src/lib/StringKeysOnly.ts"],"sourcesContent":[],"mappings":";;;KAEY,oBAAoB,KAAK,GAAG,UAAU"}
@@ -1 +0,0 @@
1
- export{};