@lssm/lib.utils-typescript 0.0.0-canary-20251120192244 → 0.0.0-canary-20251206181705
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 +21 -0
- package/dist/index.d.mts +31 -0
- package/dist/lib/{AwaitedResult.d.ts → AwaitedResult.d.mts} +1 -2
- package/dist/lib/{BrowserNativeObject.d.ts → BrowserNativeObject.d.mts} +1 -2
- package/dist/lib/{DeepInfiniteArray.d.ts → DeepInfiniteArray.d.mts} +1 -2
- package/dist/lib/{DeepKeepOnly.d.ts → DeepKeepOnly.d.mts} +2 -3
- package/dist/lib/{DeepKey.d.ts → DeepKey.d.mts} +1 -2
- package/dist/lib/DeepMap.d.mts +9 -0
- package/dist/lib/DeepNullable.d.mts +6 -0
- package/dist/lib/{DeepOr.d.ts → DeepOr.d.mts} +1 -2
- package/dist/lib/{DeepPartial.d.ts → DeepPartial.d.mts} +1 -2
- package/dist/lib/{DeepReplace.d.ts → DeepReplace.d.mts} +1 -2
- package/dist/lib/DeepReplaceNullByUndefined.d.mts +6 -0
- package/dist/lib/{DeepValue.d.ts → DeepValue.d.mts} +2 -3
- package/dist/lib/{DictionaryFromEnum.d.ts → DictionaryFromEnum.d.mts} +1 -2
- package/dist/lib/{DictionaryFromEnumMapping.d.ts → DictionaryFromEnumMapping.d.mts} +1 -2
- package/dist/lib/{EmptyRecord.d.ts → EmptyRecord.d.mts} +1 -2
- package/dist/lib/{Identified.d.ts → Identified.d.mts} +1 -2
- package/dist/lib/IdentifiedLabel.d.mts +8 -0
- package/dist/lib/{IsAny.d.ts → IsAny.d.mts} +1 -2
- package/dist/lib/{Json.d.ts → Json.d.mts} +1 -2
- package/dist/lib/{KeepOnly.d.ts → KeepOnly.d.mts} +1 -2
- package/dist/lib/{Maybe.d.ts → Maybe.d.mts} +1 -2
- package/dist/lib/{MaybeArray.d.ts → MaybeArray.d.mts} +1 -2
- package/dist/lib/{NestedValue.d.ts → NestedValue.d.mts} +1 -2
- package/dist/lib/{NonUndefined.d.ts → NonUndefined.d.mts} +1 -2
- package/dist/lib/{Primitive.d.ts → Primitive.d.mts} +2 -3
- package/dist/lib/{Replaced.d.ts → Replaced.d.mts} +2 -3
- package/dist/lib/{ReverseMap.d.ts → ReverseMap.d.mts} +1 -2
- package/dist/lib/{Satisfies.d.ts → Satisfies.d.mts} +1 -2
- package/dist/lib/{StringKey.d.ts → StringKey.d.mts} +1 -2
- package/dist/lib/StringKeysOnly.d.mts +6 -0
- package/package.json +39 -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 +0 -5
- package/dist/lib/AwaitedResult.d.cts.map +0 -1
- package/dist/lib/AwaitedResult.d.ts.map +0 -1
- package/dist/lib/BrowserNativeObject.cjs +0 -0
- package/dist/lib/BrowserNativeObject.d.cts +0 -5
- package/dist/lib/BrowserNativeObject.d.cts.map +0 -1
- package/dist/lib/BrowserNativeObject.d.ts.map +0 -1
- package/dist/lib/DeepInfiniteArray.cjs +0 -0
- package/dist/lib/DeepInfiniteArray.d.cts +0 -5
- package/dist/lib/DeepInfiniteArray.d.cts.map +0 -1
- package/dist/lib/DeepInfiniteArray.d.ts.map +0 -1
- package/dist/lib/DeepKeepOnly.cjs +0 -0
- package/dist/lib/DeepKeepOnly.d.cts +0 -7
- package/dist/lib/DeepKeepOnly.d.cts.map +0 -1
- package/dist/lib/DeepKeepOnly.d.ts.map +0 -1
- package/dist/lib/DeepKey.cjs +0 -0
- package/dist/lib/DeepKey.d.cts +0 -5
- package/dist/lib/DeepKey.d.cts.map +0 -1
- package/dist/lib/DeepKey.d.ts.map +0 -1
- package/dist/lib/DeepMap.cjs +0 -0
- package/dist/lib/DeepMap.d.cts +0 -10
- package/dist/lib/DeepMap.d.cts.map +0 -1
- 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 +0 -7
- 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.cts +0 -5
- package/dist/lib/DeepOr.d.cts.map +0 -1
- package/dist/lib/DeepOr.d.ts.map +0 -1
- package/dist/lib/DeepPartial.cjs +0 -0
- package/dist/lib/DeepPartial.d.cts +0 -8
- package/dist/lib/DeepPartial.d.cts.map +0 -1
- package/dist/lib/DeepPartial.d.ts.map +0 -1
- package/dist/lib/DeepReplace.cjs +0 -0
- package/dist/lib/DeepReplace.d.cts +0 -5
- package/dist/lib/DeepReplace.d.cts.map +0 -1
- package/dist/lib/DeepReplace.d.ts.map +0 -1
- package/dist/lib/DeepReplaceNullByUndefined.cjs +0 -0
- package/dist/lib/DeepReplaceNullByUndefined.d.cts +0 -7
- 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.cts +0 -7
- package/dist/lib/DeepValue.d.cts.map +0 -1
- package/dist/lib/DeepValue.d.ts.map +0 -1
- package/dist/lib/DictionaryFromEnum.cjs +0 -0
- package/dist/lib/DictionaryFromEnum.d.cts +0 -5
- package/dist/lib/DictionaryFromEnum.d.cts.map +0 -1
- package/dist/lib/DictionaryFromEnum.d.ts.map +0 -1
- package/dist/lib/DictionaryFromEnumMapping.cjs +0 -0
- package/dist/lib/DictionaryFromEnumMapping.d.cts +0 -5
- package/dist/lib/DictionaryFromEnumMapping.d.cts.map +0 -1
- package/dist/lib/DictionaryFromEnumMapping.d.ts.map +0 -1
- package/dist/lib/EmptyRecord.cjs +0 -0
- package/dist/lib/EmptyRecord.d.cts +0 -7
- package/dist/lib/EmptyRecord.d.cts.map +0 -1
- package/dist/lib/EmptyRecord.d.ts.map +0 -1
- package/dist/lib/Identified.cjs +0 -0
- package/dist/lib/Identified.d.cts +0 -7
- package/dist/lib/Identified.d.cts.map +0 -1
- package/dist/lib/Identified.d.ts.map +0 -1
- package/dist/lib/IdentifiedLabel.cjs +0 -0
- package/dist/lib/IdentifiedLabel.d.cts +0 -9
- 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.cts +0 -16
- package/dist/lib/Json.d.cts.map +0 -1
- package/dist/lib/Json.d.ts.map +0 -1
- package/dist/lib/KeepOnly.cjs +0 -0
- package/dist/lib/KeepOnly.d.cts +0 -5
- package/dist/lib/KeepOnly.d.cts.map +0 -1
- 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 +0 -5
- package/dist/lib/MaybeArray.d.cts.map +0 -1
- package/dist/lib/MaybeArray.d.ts.map +0 -1
- package/dist/lib/NestedValue.cjs +0 -0
- package/dist/lib/NestedValue.d.cts +0 -8
- package/dist/lib/NestedValue.d.cts.map +0 -1
- package/dist/lib/NestedValue.d.ts.map +0 -1
- package/dist/lib/NonUndefined.cjs +0 -0
- package/dist/lib/NonUndefined.d.cts +0 -5
- package/dist/lib/NonUndefined.d.cts.map +0 -1
- package/dist/lib/NonUndefined.d.ts.map +0 -1
- package/dist/lib/Primitive.cjs +0 -0
- package/dist/lib/Primitive.d.cts +0 -7
- package/dist/lib/Primitive.d.cts.map +0 -1
- package/dist/lib/Primitive.d.ts.map +0 -1
- package/dist/lib/Replaced.cjs +0 -0
- package/dist/lib/Replaced.d.cts +0 -7
- package/dist/lib/Replaced.d.cts.map +0 -1
- package/dist/lib/Replaced.d.ts.map +0 -1
- package/dist/lib/ReverseMap.cjs +0 -0
- package/dist/lib/ReverseMap.d.cts +0 -5
- package/dist/lib/ReverseMap.d.cts.map +0 -1
- package/dist/lib/ReverseMap.d.ts.map +0 -1
- package/dist/lib/Satisfies.cjs +0 -0
- package/dist/lib/Satisfies.d.cts +0 -5
- package/dist/lib/Satisfies.d.cts.map +0 -1
- package/dist/lib/Satisfies.d.ts.map +0 -1
- package/dist/lib/StringKey.cjs +0 -0
- package/dist/lib/StringKey.d.cts +0 -5
- package/dist/lib/StringKey.d.cts.map +0 -1
- package/dist/lib/StringKey.d.ts.map +0 -1
- package/dist/lib/StringKeysOnly.cjs +0 -0
- package/dist/lib/StringKeysOnly.d.cts +0 -7
- 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
CHANGED
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 };
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
-
export { DeepKeepOnly };
|
|
7
|
-
//# sourceMappingURL=DeepKeepOnly.d.ts.map
|
|
6
|
+
export { DeepKeepOnly };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/lib/DeepKey.d.ts
|
|
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
|
-
export { DeepKey };
|
|
5
|
-
//# sourceMappingURL=DeepKey.d.ts.map
|
|
4
|
+
export { DeepKey };
|
|
@@ -0,0 +1,9 @@
|
|
|
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 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/lib/DeepOr.d.ts
|
|
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
|
-
export { DeepOr };
|
|
5
|
-
//# sourceMappingURL=DeepOr.d.ts.map
|
|
4
|
+
export { DeepOr };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/lib/DeepReplace.d.ts
|
|
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
|
-
export { DeepReplace };
|
|
5
|
-
//# sourceMappingURL=DeepReplace.d.ts.map
|
|
4
|
+
export { DeepReplace };
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
-
export { DeepValue };
|
|
7
|
-
//# sourceMappingURL=DeepValue.d.ts.map
|
|
6
|
+
export { DeepValue };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/lib/DictionaryFromEnumMapping.d.ts
|
|
2
2
|
type DictionaryFromEnumMapping<Enum, Mapped, Mapping extends Record<keyof Enum, Mapped>> = { [k in keyof Enum]: Mapping[k] };
|
|
3
3
|
//#endregion
|
|
4
|
-
export { DictionaryFromEnumMapping };
|
|
5
|
-
//# sourceMappingURL=DictionaryFromEnumMapping.d.ts.map
|
|
4
|
+
export { DictionaryFromEnumMapping };
|
|
@@ -3,5 +3,4 @@ type EmptyRecord = Record<string, never>;
|
|
|
3
3
|
type UnknownRecord = Record<string, unknown>;
|
|
4
4
|
type AnyRecord = Record<string, any>;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { AnyRecord, EmptyRecord, UnknownRecord };
|
|
7
|
-
//# sourceMappingURL=EmptyRecord.d.ts.map
|
|
6
|
+
export { AnyRecord, EmptyRecord, UnknownRecord };
|
|
@@ -12,5 +12,4 @@ interface NonJsonObject<ExtraTypes> {
|
|
|
12
12
|
}
|
|
13
13
|
type ExtendedJsonObject = NonJsonObject<bigint | Date>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { ExtendedJsonObject, JSONArray, JSONObject, JSONValue, NonJsonArray, NonJsonObject, NonJsonValue, PrimitiveJSONValue };
|
|
16
|
-
//# sourceMappingURL=Json.d.ts.map
|
|
15
|
+
export { ExtendedJsonObject, JSONArray, JSONObject, JSONValue, NonJsonArray, NonJsonObject, NonJsonValue, PrimitiveJSONValue };
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
-
export { Primitive };
|
|
7
|
-
//# sourceMappingURL=Primitive.d.ts.map
|
|
6
|
+
export { Primitive };
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
-
export { Replaced };
|
|
7
|
-
//# sourceMappingURL=Replaced.d.ts.map
|
|
6
|
+
export { Replaced };
|
package/package.json
CHANGED
|
@@ -1,151 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/lib.utils-typescript",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251206181705",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"clean": "rm -rf dist",
|
|
6
6
|
"lint": "bun run lint:fix",
|
|
7
7
|
"lint:fix": "eslint src --fix",
|
|
8
8
|
"lint:check": "eslint src",
|
|
9
|
+
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
9
10
|
"build": "bun build:bundle && bun build:types",
|
|
10
11
|
"build:bundle": "tsdown",
|
|
11
12
|
"build:types": "tsc --noEmit",
|
|
12
13
|
"dev": "bun build:bundle --watch"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
15
|
-
"@lssm/tool.typescript": "
|
|
16
|
-
"@lssm/tool.tsdown": "
|
|
17
|
-
"tsdown": "^0.
|
|
16
|
+
"@lssm/tool.typescript": "workspace:*",
|
|
17
|
+
"@lssm/tool.tsdown": "workspace:*",
|
|
18
|
+
"tsdown": "^0.17.0",
|
|
18
19
|
"typescript": "^5.9.3"
|
|
19
20
|
},
|
|
20
21
|
"type": "module",
|
|
21
|
-
"main": "./dist/index.
|
|
22
|
-
"module": "./dist/index.
|
|
23
|
-
"types": "./dist/index.d.
|
|
22
|
+
"main": "./dist/index.mjs",
|
|
23
|
+
"module": "./dist/index.mjs",
|
|
24
|
+
"types": "./dist/index.d.mts",
|
|
24
25
|
"exports": {
|
|
25
|
-
".":
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"./lib/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"./lib/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"./lib/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"./lib/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"./lib/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"./lib/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"./lib/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
"./lib/DeepOr": {
|
|
58
|
-
"import": "./dist/lib/DeepOr.js",
|
|
59
|
-
"require": "./dist/lib/DeepOr.cjs"
|
|
60
|
-
},
|
|
61
|
-
"./lib/DeepPartial": {
|
|
62
|
-
"import": "./dist/lib/DeepPartial.js",
|
|
63
|
-
"require": "./dist/lib/DeepPartial.cjs"
|
|
64
|
-
},
|
|
65
|
-
"./lib/DeepReplace": {
|
|
66
|
-
"import": "./dist/lib/DeepReplace.js",
|
|
67
|
-
"require": "./dist/lib/DeepReplace.cjs"
|
|
68
|
-
},
|
|
69
|
-
"./lib/DeepReplaceNullByUndefined": {
|
|
70
|
-
"import": "./dist/lib/DeepReplaceNullByUndefined.js",
|
|
71
|
-
"require": "./dist/lib/DeepReplaceNullByUndefined.cjs"
|
|
72
|
-
},
|
|
73
|
-
"./lib/DeepValue": {
|
|
74
|
-
"import": "./dist/lib/DeepValue.js",
|
|
75
|
-
"require": "./dist/lib/DeepValue.cjs"
|
|
76
|
-
},
|
|
77
|
-
"./lib/DictionaryFromEnum": {
|
|
78
|
-
"import": "./dist/lib/DictionaryFromEnum.js",
|
|
79
|
-
"require": "./dist/lib/DictionaryFromEnum.cjs"
|
|
80
|
-
},
|
|
81
|
-
"./lib/DictionaryFromEnumMapping": {
|
|
82
|
-
"import": "./dist/lib/DictionaryFromEnumMapping.js",
|
|
83
|
-
"require": "./dist/lib/DictionaryFromEnumMapping.cjs"
|
|
84
|
-
},
|
|
85
|
-
"./lib/EmptyRecord": {
|
|
86
|
-
"import": "./dist/lib/EmptyRecord.js",
|
|
87
|
-
"require": "./dist/lib/EmptyRecord.cjs"
|
|
88
|
-
},
|
|
89
|
-
"./lib/Identified": {
|
|
90
|
-
"import": "./dist/lib/Identified.js",
|
|
91
|
-
"require": "./dist/lib/Identified.cjs"
|
|
92
|
-
},
|
|
93
|
-
"./lib/IdentifiedLabel": {
|
|
94
|
-
"import": "./dist/lib/IdentifiedLabel.js",
|
|
95
|
-
"require": "./dist/lib/IdentifiedLabel.cjs"
|
|
96
|
-
},
|
|
97
|
-
"./lib/IsAny": {
|
|
98
|
-
"import": "./dist/lib/IsAny.js",
|
|
99
|
-
"require": "./dist/lib/IsAny.cjs"
|
|
100
|
-
},
|
|
101
|
-
"./lib/Json": {
|
|
102
|
-
"import": "./dist/lib/Json.js",
|
|
103
|
-
"require": "./dist/lib/Json.cjs"
|
|
104
|
-
},
|
|
105
|
-
"./lib/KeepOnly": {
|
|
106
|
-
"import": "./dist/lib/KeepOnly.js",
|
|
107
|
-
"require": "./dist/lib/KeepOnly.cjs"
|
|
108
|
-
},
|
|
109
|
-
"./lib/Maybe": {
|
|
110
|
-
"import": "./dist/lib/Maybe.js",
|
|
111
|
-
"require": "./dist/lib/Maybe.cjs"
|
|
112
|
-
},
|
|
113
|
-
"./lib/MaybeArray": {
|
|
114
|
-
"import": "./dist/lib/MaybeArray.js",
|
|
115
|
-
"require": "./dist/lib/MaybeArray.cjs"
|
|
116
|
-
},
|
|
117
|
-
"./lib/NestedValue": {
|
|
118
|
-
"import": "./dist/lib/NestedValue.js",
|
|
119
|
-
"require": "./dist/lib/NestedValue.cjs"
|
|
120
|
-
},
|
|
121
|
-
"./lib/NonUndefined": {
|
|
122
|
-
"import": "./dist/lib/NonUndefined.js",
|
|
123
|
-
"require": "./dist/lib/NonUndefined.cjs"
|
|
124
|
-
},
|
|
125
|
-
"./lib/Primitive": {
|
|
126
|
-
"import": "./dist/lib/Primitive.js",
|
|
127
|
-
"require": "./dist/lib/Primitive.cjs"
|
|
128
|
-
},
|
|
129
|
-
"./lib/Replaced": {
|
|
130
|
-
"import": "./dist/lib/Replaced.js",
|
|
131
|
-
"require": "./dist/lib/Replaced.cjs"
|
|
132
|
-
},
|
|
133
|
-
"./lib/ReverseMap": {
|
|
134
|
-
"import": "./dist/lib/ReverseMap.js",
|
|
135
|
-
"require": "./dist/lib/ReverseMap.cjs"
|
|
136
|
-
},
|
|
137
|
-
"./lib/Satisfies": {
|
|
138
|
-
"import": "./dist/lib/Satisfies.js",
|
|
139
|
-
"require": "./dist/lib/Satisfies.cjs"
|
|
140
|
-
},
|
|
141
|
-
"./lib/StringKey": {
|
|
142
|
-
"import": "./dist/lib/StringKey.js",
|
|
143
|
-
"require": "./dist/lib/StringKey.cjs"
|
|
144
|
-
},
|
|
145
|
-
"./lib/StringKeysOnly": {
|
|
146
|
-
"import": "./dist/lib/StringKeysOnly.js",
|
|
147
|
-
"require": "./dist/lib/StringKeysOnly.cjs"
|
|
148
|
-
},
|
|
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",
|
|
149
57
|
"./*": "./*"
|
|
150
58
|
},
|
|
151
59
|
"publishConfig": {
|
package/dist/index.cjs
DELETED
|
File without changes
|
package/dist/index.d.cts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AwaitedResult } from "./lib/AwaitedResult.cjs";
|
|
2
|
-
import { BrowserNativeObject } from "./lib/BrowserNativeObject.cjs";
|
|
3
|
-
import { DeepInfiniteArray } from "./lib/DeepInfiniteArray.cjs";
|
|
4
|
-
import { KeepOnly } from "./lib/KeepOnly.cjs";
|
|
5
|
-
import { DeepKeepOnly } from "./lib/DeepKeepOnly.cjs";
|
|
6
|
-
import { DeepKey } from "./lib/DeepKey.cjs";
|
|
7
|
-
import { IsAny } from "./lib/IsAny.cjs";
|
|
8
|
-
import { NestedValue } from "./lib/NestedValue.cjs";
|
|
9
|
-
import { NonUndefined } from "./lib/NonUndefined.cjs";
|
|
10
|
-
import { DeepMap } from "./lib/DeepMap.cjs";
|
|
11
|
-
import { DeepOr } from "./lib/DeepOr.cjs";
|
|
12
|
-
import { DeepNullable } from "./lib/DeepNullable.cjs";
|
|
13
|
-
import { DeepPartial } from "./lib/DeepPartial.cjs";
|
|
14
|
-
import { DeepReplace } from "./lib/DeepReplace.cjs";
|
|
15
|
-
import { DeepReplaceNullByUndefined } from "./lib/DeepReplaceNullByUndefined.cjs";
|
|
16
|
-
import { DeepValue } from "./lib/DeepValue.cjs";
|
|
17
|
-
import { DictionaryFromEnum } from "./lib/DictionaryFromEnum.cjs";
|
|
18
|
-
import { DictionaryFromEnumMapping } from "./lib/DictionaryFromEnumMapping.cjs";
|
|
19
|
-
import { AnyRecord, EmptyRecord, UnknownRecord } from "./lib/EmptyRecord.cjs";
|
|
20
|
-
import { Identified } from "./lib/Identified.cjs";
|
|
21
|
-
import { IdentifiedLabel } from "./lib/IdentifiedLabel.cjs";
|
|
22
|
-
import { ExtendedJsonObject, JSONArray, JSONObject, JSONValue, NonJsonArray, NonJsonObject, NonJsonValue, PrimitiveJSONValue } from "./lib/Json.cjs";
|
|
23
|
-
import { Maybe } from "./lib/Maybe.cjs";
|
|
24
|
-
import { MaybeArray } from "./lib/MaybeArray.cjs";
|
|
25
|
-
import { Primitive } from "./lib/Primitive.cjs";
|
|
26
|
-
import { Replaced } from "./lib/Replaced.cjs";
|
|
27
|
-
import { ReverseMap } from "./lib/ReverseMap.cjs";
|
|
28
|
-
import { Satisfies } from "./lib/Satisfies.cjs";
|
|
29
|
-
import { StringKey } from "./lib/StringKey.cjs";
|
|
30
|
-
import { StringKeysOnly } from "./lib/StringKeysOnly.cjs";
|
|
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.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AwaitedResult } from "./lib/AwaitedResult.js";
|
|
2
|
-
import { BrowserNativeObject } from "./lib/BrowserNativeObject.js";
|
|
3
|
-
import { DeepInfiniteArray } from "./lib/DeepInfiniteArray.js";
|
|
4
|
-
import { KeepOnly } from "./lib/KeepOnly.js";
|
|
5
|
-
import { DeepKeepOnly } from "./lib/DeepKeepOnly.js";
|
|
6
|
-
import { DeepKey } from "./lib/DeepKey.js";
|
|
7
|
-
import { IsAny } from "./lib/IsAny.js";
|
|
8
|
-
import { NestedValue } from "./lib/NestedValue.js";
|
|
9
|
-
import { NonUndefined } from "./lib/NonUndefined.js";
|
|
10
|
-
import { DeepMap } from "./lib/DeepMap.js";
|
|
11
|
-
import { DeepOr } from "./lib/DeepOr.js";
|
|
12
|
-
import { DeepNullable } from "./lib/DeepNullable.js";
|
|
13
|
-
import { DeepPartial } from "./lib/DeepPartial.js";
|
|
14
|
-
import { DeepReplace } from "./lib/DeepReplace.js";
|
|
15
|
-
import { DeepReplaceNullByUndefined } from "./lib/DeepReplaceNullByUndefined.js";
|
|
16
|
-
import { DeepValue } from "./lib/DeepValue.js";
|
|
17
|
-
import { DictionaryFromEnum } from "./lib/DictionaryFromEnum.js";
|
|
18
|
-
import { DictionaryFromEnumMapping } from "./lib/DictionaryFromEnumMapping.js";
|
|
19
|
-
import { AnyRecord, EmptyRecord, UnknownRecord } from "./lib/EmptyRecord.js";
|
|
20
|
-
import { Identified } from "./lib/Identified.js";
|
|
21
|
-
import { IdentifiedLabel } from "./lib/IdentifiedLabel.js";
|
|
22
|
-
import { ExtendedJsonObject, JSONArray, JSONObject, JSONValue, NonJsonArray, NonJsonObject, NonJsonValue, PrimitiveJSONValue } from "./lib/Json.js";
|
|
23
|
-
import { Maybe } from "./lib/Maybe.js";
|
|
24
|
-
import { MaybeArray } from "./lib/MaybeArray.js";
|
|
25
|
-
import { Primitive } from "./lib/Primitive.js";
|
|
26
|
-
import { Replaced } from "./lib/Replaced.js";
|
|
27
|
-
import { ReverseMap } from "./lib/ReverseMap.js";
|
|
28
|
-
import { Satisfies } from "./lib/Satisfies.js";
|
|
29
|
-
import { StringKey } from "./lib/StringKey.js";
|
|
30
|
-
import { StringKeysOnly } from "./lib/StringKeysOnly.js";
|
|
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 };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AwaitedResult.d.cts","names":[],"sources":["../../src/lib/AwaitedResult.ts"],"sourcesContent":[],"mappings":";KACY,iDAAiD,QAC3D,WAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AwaitedResult.d.ts","names":[],"sources":["../../src/lib/AwaitedResult.ts"],"sourcesContent":[],"mappings":";KACY,iDAAiD,QAC3D,WAAW"}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserNativeObject.d.cts","names":[],"sources":["../../src/lib/BrowserNativeObject.ts"],"sourcesContent":[],"mappings":";aAAoB,mBAAA,GAAsB,OAAO,WAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserNativeObject.d.ts","names":[],"sources":["../../src/lib/BrowserNativeObject.ts"],"sourcesContent":[],"mappings":";aAAoB,mBAAA,GAAsB,OAAO,WAAW"}
|
|
File without changes
|