@lssm/lib.utils-typescript 1.7.4 → 1.9.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.
- package/README.md +51 -0
- package/dist/index.d.mts +31 -0
- package/dist/lib/{AwaitedResult.d.cts → AwaitedResult.d.mts} +1 -1
- package/dist/lib/AwaitedResult.d.mts.map +1 -0
- package/dist/lib/{BrowserNativeObject.d.cts → BrowserNativeObject.d.mts} +1 -1
- package/dist/lib/BrowserNativeObject.d.mts.map +1 -0
- package/dist/lib/{DeepInfiniteArray.d.cts → DeepInfiniteArray.d.mts} +1 -1
- package/dist/lib/DeepInfiniteArray.d.mts.map +1 -0
- package/dist/lib/{DeepKeepOnly.d.cts → DeepKeepOnly.d.mts} +2 -2
- package/dist/lib/{DeepKeepOnly.d.cts.map → DeepKeepOnly.d.mts.map} +1 -1
- package/dist/lib/{DeepKey.d.cts → DeepKey.d.mts} +1 -1
- package/dist/lib/DeepKey.d.mts.map +1 -0
- package/dist/lib/{DeepMap.d.cts → DeepMap.d.mts} +5 -5
- package/dist/lib/{DeepMap.d.cts.map → DeepMap.d.mts.map} +1 -1
- package/dist/lib/{DeepNullable.d.cts → DeepNullable.d.mts} +2 -2
- package/dist/lib/DeepNullable.d.mts.map +1 -0
- package/dist/lib/{DeepOr.d.cts → DeepOr.d.mts} +1 -1
- package/dist/lib/{DeepOr.d.cts.map → DeepOr.d.mts.map} +1 -1
- package/dist/lib/{DeepPartial.d.cts → DeepPartial.d.mts} +1 -1
- package/dist/lib/{DeepPartial.d.cts.map → DeepPartial.d.mts.map} +1 -1
- package/dist/lib/{DeepReplace.d.cts → DeepReplace.d.mts} +1 -1
- package/dist/lib/{DeepReplace.d.cts.map → DeepReplace.d.mts.map} +1 -1
- package/dist/lib/{DeepReplaceNullByUndefined.d.cts → DeepReplaceNullByUndefined.d.mts} +2 -2
- package/dist/lib/DeepReplaceNullByUndefined.d.mts.map +1 -0
- package/dist/lib/{DeepValue.d.cts → DeepValue.d.mts} +2 -2
- package/dist/lib/{DeepValue.d.cts.map → DeepValue.d.mts.map} +1 -1
- package/dist/lib/{DictionaryFromEnum.d.cts → DictionaryFromEnum.d.mts} +1 -1
- package/dist/lib/DictionaryFromEnum.d.mts.map +1 -0
- package/dist/lib/{DictionaryFromEnumMapping.d.cts → DictionaryFromEnumMapping.d.mts} +1 -1
- package/dist/lib/{DictionaryFromEnumMapping.d.cts.map → DictionaryFromEnumMapping.d.mts.map} +1 -1
- package/dist/lib/{EmptyRecord.d.cts → EmptyRecord.d.mts} +1 -1
- package/dist/lib/{EmptyRecord.d.cts.map → EmptyRecord.d.mts.map} +1 -1
- package/dist/lib/{Identified.d.cts → Identified.d.mts} +1 -1
- package/dist/lib/Identified.d.mts.map +1 -0
- package/dist/lib/{IdentifiedLabel.d.cts → IdentifiedLabel.d.mts} +2 -2
- package/dist/lib/IdentifiedLabel.d.mts.map +1 -0
- package/dist/lib/{IsAny.d.ts → IsAny.d.mts} +1 -1
- package/dist/lib/IsAny.d.mts.map +1 -0
- package/dist/lib/{Json.d.cts → Json.d.mts} +1 -1
- package/dist/lib/{Json.d.cts.map → Json.d.mts.map} +1 -1
- package/dist/lib/{KeepOnly.d.cts → KeepOnly.d.mts} +1 -1
- package/dist/lib/{KeepOnly.d.cts.map → KeepOnly.d.mts.map} +1 -1
- package/dist/lib/{Maybe.d.ts → Maybe.d.mts} +1 -1
- package/dist/lib/Maybe.d.mts.map +1 -0
- package/dist/lib/{MaybeArray.d.cts → MaybeArray.d.mts} +1 -1
- package/dist/lib/MaybeArray.d.mts.map +1 -0
- package/dist/lib/{NestedValue.d.cts → NestedValue.d.mts} +1 -1
- package/dist/lib/{NestedValue.d.cts.map → NestedValue.d.mts.map} +1 -1
- package/dist/lib/{NonUndefined.d.cts → NonUndefined.d.mts} +1 -1
- package/dist/lib/NonUndefined.d.mts.map +1 -0
- package/dist/lib/{Primitive.d.cts → Primitive.d.mts} +2 -2
- package/dist/lib/Primitive.d.mts.map +1 -0
- package/dist/lib/{Replaced.d.cts → Replaced.d.mts} +2 -2
- package/dist/lib/{Replaced.d.cts.map → Replaced.d.mts.map} +1 -1
- package/dist/lib/{ReverseMap.d.cts → ReverseMap.d.mts} +1 -1
- package/dist/lib/{ReverseMap.d.cts.map → ReverseMap.d.mts.map} +1 -1
- package/dist/lib/{Satisfies.d.cts → Satisfies.d.mts} +1 -1
- package/dist/lib/Satisfies.d.mts.map +1 -0
- package/dist/lib/{StringKey.d.cts → StringKey.d.mts} +1 -1
- package/dist/lib/{StringKey.d.cts.map → StringKey.d.mts.map} +1 -1
- package/dist/lib/{StringKeysOnly.d.cts → StringKeysOnly.d.mts} +2 -2
- package/dist/lib/StringKeysOnly.d.mts.map +1 -0
- package/package.json +38 -131
- package/dist/index.cjs +0 -0
- package/dist/index.d.cts +0 -31
- package/dist/index.d.ts +0 -31
- package/dist/lib/AwaitedResult.cjs +0 -0
- package/dist/lib/AwaitedResult.d.cts.map +0 -1
- package/dist/lib/AwaitedResult.d.ts +0 -5
- package/dist/lib/AwaitedResult.d.ts.map +0 -1
- package/dist/lib/BrowserNativeObject.cjs +0 -0
- package/dist/lib/BrowserNativeObject.d.cts.map +0 -1
- package/dist/lib/BrowserNativeObject.d.ts +0 -5
- package/dist/lib/BrowserNativeObject.d.ts.map +0 -1
- package/dist/lib/DeepInfiniteArray.cjs +0 -0
- package/dist/lib/DeepInfiniteArray.d.cts.map +0 -1
- package/dist/lib/DeepInfiniteArray.d.ts +0 -5
- package/dist/lib/DeepInfiniteArray.d.ts.map +0 -1
- package/dist/lib/DeepKeepOnly.cjs +0 -0
- package/dist/lib/DeepKeepOnly.d.ts +0 -7
- package/dist/lib/DeepKeepOnly.d.ts.map +0 -1
- package/dist/lib/DeepKey.cjs +0 -0
- package/dist/lib/DeepKey.d.cts.map +0 -1
- package/dist/lib/DeepKey.d.ts +0 -5
- package/dist/lib/DeepKey.d.ts.map +0 -1
- package/dist/lib/DeepMap.cjs +0 -0
- package/dist/lib/DeepMap.d.ts +0 -10
- package/dist/lib/DeepMap.d.ts.map +0 -1
- package/dist/lib/DeepNullable.cjs +0 -0
- package/dist/lib/DeepNullable.d.cts.map +0 -1
- package/dist/lib/DeepNullable.d.ts +0 -7
- package/dist/lib/DeepNullable.d.ts.map +0 -1
- package/dist/lib/DeepOr.cjs +0 -0
- package/dist/lib/DeepOr.d.ts +0 -5
- package/dist/lib/DeepOr.d.ts.map +0 -1
- package/dist/lib/DeepPartial.cjs +0 -0
- package/dist/lib/DeepPartial.d.ts +0 -8
- package/dist/lib/DeepPartial.d.ts.map +0 -1
- package/dist/lib/DeepReplace.cjs +0 -0
- package/dist/lib/DeepReplace.d.ts +0 -5
- package/dist/lib/DeepReplace.d.ts.map +0 -1
- package/dist/lib/DeepReplaceNullByUndefined.cjs +0 -0
- package/dist/lib/DeepReplaceNullByUndefined.d.cts.map +0 -1
- package/dist/lib/DeepReplaceNullByUndefined.d.ts +0 -7
- package/dist/lib/DeepReplaceNullByUndefined.d.ts.map +0 -1
- package/dist/lib/DeepValue.cjs +0 -0
- package/dist/lib/DeepValue.d.ts +0 -7
- package/dist/lib/DeepValue.d.ts.map +0 -1
- package/dist/lib/DictionaryFromEnum.cjs +0 -0
- package/dist/lib/DictionaryFromEnum.d.cts.map +0 -1
- package/dist/lib/DictionaryFromEnum.d.ts +0 -5
- package/dist/lib/DictionaryFromEnum.d.ts.map +0 -1
- package/dist/lib/DictionaryFromEnumMapping.cjs +0 -0
- package/dist/lib/DictionaryFromEnumMapping.d.ts +0 -5
- package/dist/lib/DictionaryFromEnumMapping.d.ts.map +0 -1
- package/dist/lib/EmptyRecord.cjs +0 -0
- package/dist/lib/EmptyRecord.d.ts +0 -7
- package/dist/lib/EmptyRecord.d.ts.map +0 -1
- package/dist/lib/Identified.cjs +0 -0
- package/dist/lib/Identified.d.cts.map +0 -1
- package/dist/lib/Identified.d.ts +0 -7
- package/dist/lib/Identified.d.ts.map +0 -1
- package/dist/lib/IdentifiedLabel.cjs +0 -0
- package/dist/lib/IdentifiedLabel.d.cts.map +0 -1
- package/dist/lib/IdentifiedLabel.d.ts +0 -9
- package/dist/lib/IdentifiedLabel.d.ts.map +0 -1
- package/dist/lib/IsAny.cjs +0 -0
- package/dist/lib/IsAny.d.cts +0 -5
- package/dist/lib/IsAny.d.cts.map +0 -1
- package/dist/lib/IsAny.d.ts.map +0 -1
- package/dist/lib/Json.cjs +0 -0
- package/dist/lib/Json.d.ts +0 -16
- package/dist/lib/Json.d.ts.map +0 -1
- package/dist/lib/KeepOnly.cjs +0 -0
- package/dist/lib/KeepOnly.d.ts +0 -5
- package/dist/lib/KeepOnly.d.ts.map +0 -1
- package/dist/lib/Maybe.cjs +0 -0
- package/dist/lib/Maybe.d.cts +0 -5
- package/dist/lib/Maybe.d.cts.map +0 -1
- package/dist/lib/Maybe.d.ts.map +0 -1
- package/dist/lib/MaybeArray.cjs +0 -0
- package/dist/lib/MaybeArray.d.cts.map +0 -1
- package/dist/lib/MaybeArray.d.ts +0 -5
- package/dist/lib/MaybeArray.d.ts.map +0 -1
- package/dist/lib/NestedValue.cjs +0 -0
- package/dist/lib/NestedValue.d.ts +0 -8
- package/dist/lib/NestedValue.d.ts.map +0 -1
- package/dist/lib/NonUndefined.cjs +0 -0
- package/dist/lib/NonUndefined.d.cts.map +0 -1
- package/dist/lib/NonUndefined.d.ts +0 -5
- package/dist/lib/NonUndefined.d.ts.map +0 -1
- package/dist/lib/Primitive.cjs +0 -0
- package/dist/lib/Primitive.d.cts.map +0 -1
- package/dist/lib/Primitive.d.ts +0 -7
- package/dist/lib/Primitive.d.ts.map +0 -1
- package/dist/lib/Replaced.cjs +0 -0
- package/dist/lib/Replaced.d.ts +0 -7
- package/dist/lib/Replaced.d.ts.map +0 -1
- package/dist/lib/ReverseMap.cjs +0 -0
- package/dist/lib/ReverseMap.d.ts +0 -5
- package/dist/lib/ReverseMap.d.ts.map +0 -1
- package/dist/lib/Satisfies.cjs +0 -0
- package/dist/lib/Satisfies.d.cts.map +0 -1
- package/dist/lib/Satisfies.d.ts +0 -5
- package/dist/lib/Satisfies.d.ts.map +0 -1
- package/dist/lib/StringKey.cjs +0 -0
- package/dist/lib/StringKey.d.ts +0 -5
- package/dist/lib/StringKey.d.ts.map +0 -1
- package/dist/lib/StringKeysOnly.cjs +0 -0
- package/dist/lib/StringKeysOnly.d.cts.map +0 -1
- package/dist/lib/StringKeysOnly.d.ts +0 -7
- package/dist/lib/StringKeysOnly.d.ts.map +0 -1
- /package/dist/{index.js → index.mjs} +0 -0
- /package/dist/lib/{AwaitedResult.js → AwaitedResult.mjs} +0 -0
- /package/dist/lib/{BrowserNativeObject.js → BrowserNativeObject.mjs} +0 -0
- /package/dist/lib/{DeepInfiniteArray.js → DeepInfiniteArray.mjs} +0 -0
- /package/dist/lib/{DeepKeepOnly.js → DeepKeepOnly.mjs} +0 -0
- /package/dist/lib/{DeepKey.js → DeepKey.mjs} +0 -0
- /package/dist/lib/{DeepMap.js → DeepMap.mjs} +0 -0
- /package/dist/lib/{DeepNullable.js → DeepNullable.mjs} +0 -0
- /package/dist/lib/{DeepOr.js → DeepOr.mjs} +0 -0
- /package/dist/lib/{DeepPartial.js → DeepPartial.mjs} +0 -0
- /package/dist/lib/{DeepReplace.js → DeepReplace.mjs} +0 -0
- /package/dist/lib/{DeepReplaceNullByUndefined.js → DeepReplaceNullByUndefined.mjs} +0 -0
- /package/dist/lib/{DeepValue.js → DeepValue.mjs} +0 -0
- /package/dist/lib/{DictionaryFromEnum.js → DictionaryFromEnum.mjs} +0 -0
- /package/dist/lib/{DictionaryFromEnumMapping.js → DictionaryFromEnumMapping.mjs} +0 -0
- /package/dist/lib/{EmptyRecord.js → EmptyRecord.mjs} +0 -0
- /package/dist/lib/{Identified.js → Identified.mjs} +0 -0
- /package/dist/lib/{IdentifiedLabel.js → IdentifiedLabel.mjs} +0 -0
- /package/dist/lib/{IsAny.js → IsAny.mjs} +0 -0
- /package/dist/lib/{Json.js → Json.mjs} +0 -0
- /package/dist/lib/{KeepOnly.js → KeepOnly.mjs} +0 -0
- /package/dist/lib/{Maybe.js → Maybe.mjs} +0 -0
- /package/dist/lib/{MaybeArray.js → MaybeArray.mjs} +0 -0
- /package/dist/lib/{NestedValue.js → NestedValue.mjs} +0 -0
- /package/dist/lib/{NonUndefined.js → NonUndefined.mjs} +0 -0
- /package/dist/lib/{Primitive.js → Primitive.mjs} +0 -0
- /package/dist/lib/{Replaced.js → Replaced.mjs} +0 -0
- /package/dist/lib/{ReverseMap.js → ReverseMap.mjs} +0 -0
- /package/dist/lib/{Satisfies.js → Satisfies.mjs} +0 -0
- /package/dist/lib/{StringKey.js → StringKey.mjs} +0 -0
- /package/dist/lib/{StringKeysOnly.js → StringKeysOnly.mjs} +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# @lssm/lib.utils-typescript
|
|
2
|
+
|
|
3
|
+
A collection of essential TypeScript utility types and helper functions.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
To provide a shared library of generic TypeScript types (e.g., `DeepPartial`, `Maybe`, `AwaitedResult`) to avoid redeclaring them in every package.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @lssm/lib.utils-typescript
|
|
13
|
+
# or
|
|
14
|
+
bun add @lssm/lib.utils-typescript
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Key Concepts
|
|
18
|
+
|
|
19
|
+
- **Utility Types**: Enhancements to standard TS library types.
|
|
20
|
+
- **Zero Dependencies**: Pure TS/JS helpers.
|
|
21
|
+
|
|
22
|
+
## Exports
|
|
23
|
+
|
|
24
|
+
- `DeepPartial`, `DeepRequired`
|
|
25
|
+
- `Maybe`, `Nullable`
|
|
26
|
+
- `AwaitedResult`
|
|
27
|
+
- `Json`, `JsonObject`
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
import type { DeepPartial } from '@lssm/lib.utils-typescript';
|
|
33
|
+
|
|
34
|
+
type User = {
|
|
35
|
+
profile: {
|
|
36
|
+
name: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const update: DeepPartial<User> = {
|
|
41
|
+
profile: { name: 'Alice' }, // Valid
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AwaitedResult.d.mts","names":[],"sources":["../../src/lib/AwaitedResult.ts"],"sourcesContent":[],"mappings":";KACY,iDAAiD,QAC3D,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserNativeObject.d.mts","names":[],"sources":["../../src/lib/BrowserNativeObject.ts"],"sourcesContent":[],"mappings":";aAAoB,mBAAA,GAAsB,OAAO,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepInfiniteArray.d.mts","names":[],"sources":["../../src/lib/DeepInfiniteArray.ts"],"sourcesContent":[],"mappings":";aAAoB,wBAAwB,IAAI,kBAAkB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { KeepOnly } from "./KeepOnly.
|
|
1
|
+
import { KeepOnly } from "./KeepOnly.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/DeepKeepOnly.d.ts
|
|
4
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
5
|
//#endregion
|
|
6
6
|
export { DeepKeepOnly };
|
|
7
|
-
//# sourceMappingURL=DeepKeepOnly.d.
|
|
7
|
+
//# sourceMappingURL=DeepKeepOnly.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepKeepOnly.d.
|
|
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"}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
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
3
|
//#endregion
|
|
4
4
|
export { DeepKey };
|
|
5
|
-
//# sourceMappingURL=DeepKey.d.
|
|
5
|
+
//# sourceMappingURL=DeepKey.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,10 +1,10 @@
|
|
|
1
|
-
import { BrowserNativeObject } from "./BrowserNativeObject.
|
|
2
|
-
import { IsAny } from "./IsAny.
|
|
3
|
-
import { NestedValue } from "./NestedValue.
|
|
4
|
-
import { NonUndefined } from "./NonUndefined.
|
|
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
5
|
|
|
6
6
|
//#region src/lib/DeepMap.d.ts
|
|
7
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
8
|
//#endregion
|
|
9
9
|
export { DeepMap };
|
|
10
|
-
//# sourceMappingURL=DeepMap.d.
|
|
10
|
+
//# sourceMappingURL=DeepMap.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepMap.d.
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { DeepOr } from "./DeepOr.
|
|
1
|
+
import { DeepOr } from "./DeepOr.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/DeepNullable.d.ts
|
|
4
4
|
type DeepNullable<T> = DeepOr<T, null>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { DeepNullable };
|
|
7
|
-
//# sourceMappingURL=DeepNullable.d.
|
|
7
|
+
//# sourceMappingURL=DeepNullable.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepNullable.d.mts","names":[],"sources":["../../src/lib/DeepNullable.ts"],"sourcesContent":[],"mappings":";;;KAEY,kBAAkB,OAAO"}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
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
3
|
//#endregion
|
|
4
4
|
export { DeepOr };
|
|
5
|
-
//# sourceMappingURL=DeepOr.d.
|
|
5
|
+
//# sourceMappingURL=DeepOr.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepOr.d.
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepPartial.d.
|
|
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"}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
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
3
|
//#endregion
|
|
4
4
|
export { DeepReplace };
|
|
5
|
-
//# sourceMappingURL=DeepReplace.d.
|
|
5
|
+
//# sourceMappingURL=DeepReplace.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepReplace.d.
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { DeepReplace } from "./DeepReplace.
|
|
1
|
+
import { DeepReplace } from "./DeepReplace.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/DeepReplaceNullByUndefined.d.ts
|
|
4
4
|
type DeepReplaceNullByUndefined<T> = DeepReplace<T, null, undefined>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { DeepReplaceNullByUndefined };
|
|
7
|
-
//# sourceMappingURL=DeepReplaceNullByUndefined.d.
|
|
7
|
+
//# sourceMappingURL=DeepReplaceNullByUndefined.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepReplaceNullByUndefined.d.mts","names":[],"sources":["../../src/lib/DeepReplaceNullByUndefined.ts"],"sourcesContent":[],"mappings":";;;KAEY,gCAAgC,YAAY"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DeepKey } from "./DeepKey.
|
|
1
|
+
import { DeepKey } from "./DeepKey.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/DeepValue.d.ts
|
|
4
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
5
|
//#endregion
|
|
6
6
|
export { DeepValue };
|
|
7
|
-
//# sourceMappingURL=DeepValue.d.
|
|
7
|
+
//# sourceMappingURL=DeepValue.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepValue.d.
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DictionaryFromEnum.d.mts","names":[],"sources":["../../src/lib/DictionaryFromEnum.ts"],"sourcesContent":[],"mappings":";KAAY,uCAAuC,aAC3C,MACN"}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
type DictionaryFromEnumMapping<Enum, Mapped, Mapping extends Record<keyof Enum, Mapped>> = { [k in keyof Enum]: Mapping[k] };
|
|
3
3
|
//#endregion
|
|
4
4
|
export { DictionaryFromEnumMapping };
|
|
5
|
-
//# sourceMappingURL=DictionaryFromEnumMapping.d.
|
|
5
|
+
//# sourceMappingURL=DictionaryFromEnumMapping.d.mts.map
|
package/dist/lib/{DictionaryFromEnumMapping.d.cts.map → DictionaryFromEnumMapping.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryFromEnumMapping.d.
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyRecord.d.
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Identified.d.mts","names":[],"sources":["../../src/lib/Identified.ts"],"sourcesContent":[],"mappings":";UAAiB,UAAA;EAAA,EAAA,EAAA,MAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Identified } from "./Identified.
|
|
1
|
+
import { Identified } from "./Identified.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/IdentifiedLabel.d.ts
|
|
4
4
|
type IdentifiedLabel = Identified & {
|
|
@@ -6,4 +6,4 @@ type IdentifiedLabel = Identified & {
|
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
8
8
|
export { IdentifiedLabel };
|
|
9
|
-
//# sourceMappingURL=IdentifiedLabel.d.
|
|
9
|
+
//# sourceMappingURL=IdentifiedLabel.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentifiedLabel.d.mts","names":[],"sources":["../../src/lib/IdentifiedLabel.ts"],"sourcesContent":[],"mappings":";;;KAEY,eAAA,GAAkB;;AAA9B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IsAny.d.mts","names":[],"sources":["../../src/lib/IsAny.ts"],"sourcesContent":[],"mappings":";aAAoB,yBAAyB"}
|
|
@@ -13,4 +13,4 @@ interface NonJsonObject<ExtraTypes> {
|
|
|
13
13
|
type ExtendedJsonObject = NonJsonObject<bigint | Date>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ExtendedJsonObject, JSONArray, JSONObject, JSONValue, NonJsonArray, NonJsonObject, NonJsonValue, PrimitiveJSONValue };
|
|
16
|
-
//# sourceMappingURL=Json.d.
|
|
16
|
+
//# sourceMappingURL=Json.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Json.d.
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeepOnly.d.
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Maybe.d.mts","names":[],"sources":["../../src/lib/Maybe.ts"],"sourcesContent":[],"mappings":";KAAY,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaybeArray.d.mts","names":[],"sources":["../../src/lib/MaybeArray.ts"],"sourcesContent":[],"mappings":";KAAY,gBAAgB,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedValue.d.
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NonUndefined.d.mts","names":[],"sources":["../../src/lib/NonUndefined.ts"],"sourcesContent":[],"mappings":";aAAoB,kBAAkB,8BAA8B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PrimitiveJSONValue } from "./Json.
|
|
1
|
+
import { PrimitiveJSONValue } from "./Json.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/Primitive.d.ts
|
|
4
4
|
declare type Primitive = PrimitiveJSONValue | symbol | bigint;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Primitive };
|
|
7
|
-
//# sourceMappingURL=Primitive.d.
|
|
7
|
+
//# sourceMappingURL=Primitive.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Primitive.d.mts","names":[],"sources":["../../src/lib/Primitive.ts"],"sourcesContent":[],"mappings":";;;aAEoB,SAAA,GAAY"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Primitive } from "./Primitive.
|
|
1
|
+
import { Primitive } from "./Primitive.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/Replaced.d.ts
|
|
4
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
5
|
//#endregion
|
|
6
6
|
export { Replaced };
|
|
7
|
-
//# sourceMappingURL=Replaced.d.
|
|
7
|
+
//# sourceMappingURL=Replaced.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Replaced.d.
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReverseMap.d.
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Satisfies.d.mts","names":[],"sources":["../../src/lib/Satisfies.ts"],"sourcesContent":[],"mappings":";aAAoB,yCAClB,wBAAwB,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringKey.d.
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { StringKey } from "./StringKey.
|
|
1
|
+
import { StringKey } from "./StringKey.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/StringKeysOnly.d.ts
|
|
4
4
|
type StringKeysOnly<T> = Pick<T, StringKey<T>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { StringKeysOnly };
|
|
7
|
-
//# sourceMappingURL=StringKeysOnly.d.
|
|
7
|
+
//# sourceMappingURL=StringKeysOnly.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringKeysOnly.d.mts","names":[],"sources":["../../src/lib/StringKeysOnly.ts"],"sourcesContent":[],"mappings":";;;KAEY,oBAAoB,KAAK,GAAG,UAAU"}
|