@contractspec/lib.utils-typescript 1.57.0 → 1.59.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/dist/browser/index.js +7 -0
- package/dist/browser/lib/AwaitedResult.js +0 -0
- package/dist/browser/lib/BrowserNativeObject.js +0 -0
- package/dist/browser/lib/DeepInfiniteArray.js +0 -0
- package/dist/browser/lib/DeepKeepOnly.js +0 -0
- package/dist/browser/lib/DeepKey.js +0 -0
- package/dist/browser/lib/DeepMap.js +0 -0
- package/dist/browser/lib/DeepNullable.js +0 -0
- package/dist/browser/lib/DeepOr.js +0 -0
- package/dist/browser/lib/DeepPartial.js +0 -0
- package/dist/browser/lib/DeepReplace.js +0 -0
- package/dist/browser/lib/DeepReplaceNullByUndefined.js +0 -0
- package/dist/browser/lib/DeepValue.js +0 -0
- package/dist/browser/lib/DictionaryFromEnum.js +0 -0
- package/dist/browser/lib/DictionaryFromEnumMapping.js +0 -0
- package/dist/browser/lib/EmptyRecord.js +0 -0
- package/dist/browser/lib/Identified.js +0 -0
- package/dist/browser/lib/IdentifiedLabel.js +0 -0
- package/dist/browser/lib/IsAny.js +0 -0
- package/dist/browser/lib/Json.js +0 -0
- package/dist/browser/lib/KeepOnly.js +0 -0
- package/dist/browser/lib/Maybe.js +0 -0
- package/dist/browser/lib/MaybeArray.js +0 -0
- package/dist/browser/lib/NestedValue.js +0 -0
- package/dist/browser/lib/NonUndefined.js +0 -0
- package/dist/browser/lib/Primitive.js +0 -0
- package/dist/browser/lib/Replaced.js +0 -0
- package/dist/browser/lib/ReverseMap.js +0 -0
- package/dist/browser/lib/Satisfies.js +0 -0
- package/dist/browser/lib/StringKey.js +0 -0
- package/dist/browser/lib/StringKeysOnly.js +0 -0
- package/dist/index.d.ts +34 -32
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -3
- package/dist/lib/AwaitedResult.d.ts +1 -4
- package/dist/lib/AwaitedResult.d.ts.map +1 -1
- package/dist/lib/AwaitedResult.js +1 -0
- package/dist/lib/BrowserNativeObject.d.ts +1 -4
- package/dist/lib/BrowserNativeObject.d.ts.map +1 -1
- package/dist/lib/BrowserNativeObject.js +1 -0
- package/dist/lib/DeepInfiniteArray.d.ts +1 -4
- package/dist/lib/DeepInfiniteArray.d.ts.map +1 -1
- package/dist/lib/DeepInfiniteArray.js +1 -0
- package/dist/lib/DeepKeepOnly.d.ts +2 -6
- package/dist/lib/DeepKeepOnly.d.ts.map +1 -1
- package/dist/lib/DeepKeepOnly.js +1 -0
- package/dist/lib/DeepKey.d.ts +1 -4
- package/dist/lib/DeepKey.d.ts.map +1 -1
- package/dist/lib/DeepKey.js +1 -0
- package/dist/lib/DeepMap.d.ts +7 -9
- package/dist/lib/DeepMap.d.ts.map +1 -1
- package/dist/lib/DeepMap.js +1 -0
- package/dist/lib/DeepNullable.d.ts +2 -6
- package/dist/lib/DeepNullable.d.ts.map +1 -1
- package/dist/lib/DeepNullable.js +1 -0
- package/dist/lib/DeepOr.d.ts +3 -4
- package/dist/lib/DeepOr.d.ts.map +1 -1
- package/dist/lib/DeepOr.js +1 -0
- package/dist/lib/DeepPartial.d.ts +3 -4
- package/dist/lib/DeepPartial.d.ts.map +1 -1
- package/dist/lib/DeepPartial.js +1 -0
- package/dist/lib/DeepReplace.d.ts +3 -4
- package/dist/lib/DeepReplace.d.ts.map +1 -1
- package/dist/lib/DeepReplace.js +1 -0
- package/dist/lib/DeepReplaceNullByUndefined.d.ts +2 -6
- package/dist/lib/DeepReplaceNullByUndefined.d.ts.map +1 -1
- package/dist/lib/DeepReplaceNullByUndefined.js +1 -0
- package/dist/lib/DeepValue.d.ts +2 -6
- package/dist/lib/DeepValue.d.ts.map +1 -1
- package/dist/lib/DeepValue.js +1 -0
- package/dist/lib/DictionaryFromEnum.d.ts +1 -4
- package/dist/lib/DictionaryFromEnum.d.ts.map +1 -1
- package/dist/lib/DictionaryFromEnum.js +1 -0
- package/dist/lib/DictionaryFromEnumMapping.d.ts +3 -4
- package/dist/lib/DictionaryFromEnumMapping.d.ts.map +1 -1
- package/dist/lib/DictionaryFromEnumMapping.js +1 -0
- package/dist/lib/EmptyRecord.d.ts +3 -6
- package/dist/lib/EmptyRecord.d.ts.map +1 -1
- package/dist/lib/EmptyRecord.js +1 -0
- package/dist/lib/Identified.d.ts +2 -5
- package/dist/lib/Identified.d.ts.map +1 -1
- package/dist/lib/Identified.js +1 -0
- package/dist/lib/IdentifiedLabel.d.ts +3 -7
- package/dist/lib/IdentifiedLabel.d.ts.map +1 -1
- package/dist/lib/IdentifiedLabel.js +1 -0
- package/dist/lib/IsAny.d.ts +1 -4
- package/dist/lib/IsAny.d.ts.map +1 -1
- package/dist/lib/IsAny.js +1 -0
- package/dist/lib/Json.d.ts +12 -13
- package/dist/lib/Json.d.ts.map +1 -1
- package/dist/lib/Json.js +1 -0
- package/dist/lib/KeepOnly.d.ts +3 -4
- package/dist/lib/KeepOnly.d.ts.map +1 -1
- package/dist/lib/KeepOnly.js +1 -0
- package/dist/lib/Maybe.d.ts +1 -4
- package/dist/lib/Maybe.d.ts.map +1 -1
- package/dist/lib/Maybe.js +1 -0
- package/dist/lib/MaybeArray.d.ts +1 -4
- package/dist/lib/MaybeArray.d.ts.map +1 -1
- package/dist/lib/MaybeArray.js +1 -0
- package/dist/lib/NestedValue.d.ts +3 -5
- package/dist/lib/NestedValue.d.ts.map +1 -1
- package/dist/lib/NestedValue.js +1 -0
- package/dist/lib/NonUndefined.d.ts +1 -4
- package/dist/lib/NonUndefined.d.ts.map +1 -1
- package/dist/lib/NonUndefined.js +1 -0
- package/dist/lib/Primitive.d.ts +2 -6
- package/dist/lib/Primitive.d.ts.map +1 -1
- package/dist/lib/Primitive.js +1 -0
- package/dist/lib/Replaced.d.ts +4 -6
- package/dist/lib/Replaced.d.ts.map +1 -1
- package/dist/lib/Replaced.js +1 -0
- package/dist/lib/ReverseMap.d.ts +3 -4
- package/dist/lib/ReverseMap.d.ts.map +1 -1
- package/dist/lib/ReverseMap.js +1 -0
- package/dist/lib/Satisfies.d.ts +1 -4
- package/dist/lib/Satisfies.d.ts.map +1 -1
- package/dist/lib/Satisfies.js +1 -0
- package/dist/lib/StringKey.d.ts +3 -4
- package/dist/lib/StringKey.d.ts.map +1 -1
- package/dist/lib/StringKey.js +1 -0
- package/dist/lib/StringKeysOnly.d.ts +2 -6
- package/dist/lib/StringKeysOnly.d.ts.map +1 -1
- package/dist/lib/StringKeysOnly.js +1 -0
- package/dist/node/index.js +7 -0
- package/dist/node/lib/AwaitedResult.js +0 -0
- package/dist/node/lib/BrowserNativeObject.js +0 -0
- package/dist/node/lib/DeepInfiniteArray.js +0 -0
- package/dist/node/lib/DeepKeepOnly.js +0 -0
- package/dist/node/lib/DeepKey.js +0 -0
- package/dist/node/lib/DeepMap.js +0 -0
- package/dist/node/lib/DeepNullable.js +0 -0
- package/dist/node/lib/DeepOr.js +0 -0
- package/dist/node/lib/DeepPartial.js +0 -0
- package/dist/node/lib/DeepReplace.js +0 -0
- package/dist/node/lib/DeepReplaceNullByUndefined.js +0 -0
- package/dist/node/lib/DeepValue.js +0 -0
- package/dist/node/lib/DictionaryFromEnum.js +0 -0
- package/dist/node/lib/DictionaryFromEnumMapping.js +0 -0
- package/dist/node/lib/EmptyRecord.js +0 -0
- package/dist/node/lib/Identified.js +0 -0
- package/dist/node/lib/IdentifiedLabel.js +0 -0
- package/dist/node/lib/IsAny.js +0 -0
- package/dist/node/lib/Json.js +0 -0
- package/dist/node/lib/KeepOnly.js +0 -0
- package/dist/node/lib/Maybe.js +0 -0
- package/dist/node/lib/MaybeArray.js +0 -0
- package/dist/node/lib/NestedValue.js +0 -0
- package/dist/node/lib/NonUndefined.js +0 -0
- package/dist/node/lib/Primitive.js +0 -0
- package/dist/node/lib/Replaced.js +0 -0
- package/dist/node/lib/ReverseMap.js +0 -0
- package/dist/node/lib/Satisfies.js +0 -0
- package/dist/node/lib/StringKey.js +0 -0
- package/dist/node/lib/StringKeysOnly.js +0 -0
- package/dist/staticShouldNotHappen.d.ts +1 -4
- package/dist/staticShouldNotHappen.d.ts.map +1 -1
- package/package.json +258 -73
- package/dist/staticShouldNotHappen.js +0 -8
- package/dist/staticShouldNotHappen.js.map +0 -1
|
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
|
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export
|
|
1
|
+
export type * from './lib/AwaitedResult';
|
|
2
|
+
export type * from './lib/AwaitedResult';
|
|
3
|
+
export type * from './lib/BrowserNativeObject';
|
|
4
|
+
export type * from './lib/DeepInfiniteArray';
|
|
5
|
+
export type * from './lib/DeepKeepOnly';
|
|
6
|
+
export type * from './lib/DeepKey';
|
|
7
|
+
export type * from './lib/DeepMap';
|
|
8
|
+
export type * from './lib/DeepNullable';
|
|
9
|
+
export type * from './lib/DeepOr';
|
|
10
|
+
export type * from './lib/DeepPartial';
|
|
11
|
+
export type * from './lib/DeepReplace';
|
|
12
|
+
export type * from './lib/DeepReplaceNullByUndefined';
|
|
13
|
+
export type * from './lib/DeepValue';
|
|
14
|
+
export type * from './lib/DictionaryFromEnum';
|
|
15
|
+
export type * from './lib/DictionaryFromEnumMapping';
|
|
16
|
+
export type * from './lib/EmptyRecord';
|
|
17
|
+
export type * from './lib/Identified';
|
|
18
|
+
export type * from './lib/IdentifiedLabel';
|
|
19
|
+
export type * from './lib/IsAny';
|
|
20
|
+
export type * from './lib/Json';
|
|
21
|
+
export type * from './lib/KeepOnly';
|
|
22
|
+
export type * from './lib/Maybe';
|
|
23
|
+
export type * from './lib/MaybeArray';
|
|
24
|
+
export type * from './lib/NestedValue';
|
|
25
|
+
export type * from './lib/NonUndefined';
|
|
26
|
+
export type * from './lib/Primitive';
|
|
27
|
+
export type * from './lib/Primitive';
|
|
28
|
+
export type * from './lib/Replaced';
|
|
29
|
+
export type * from './lib/ReverseMap';
|
|
30
|
+
export type * from './lib/Satisfies';
|
|
31
|
+
export type * from './lib/StringKey';
|
|
32
|
+
export type * from './lib/StringKeysOnly';
|
|
33
|
+
export * from './staticShouldNotHappen';
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,kCAAkC,CAAC;AACtD,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,sBAAsB,CAAC;AAC1C,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/staticShouldNotHappen.ts
|
|
3
|
+
function staticShouldNotHappen(value) {
|
|
4
|
+
throw new Error(`Missing switch value ${value?.toString?.()}`);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
staticShouldNotHappen
|
|
8
|
+
};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type AwaitedResult<T extends (...args: any) => any> = Awaited<ReturnType<T>>;
|
|
3
|
-
//#endregion
|
|
4
|
-
export { AwaitedResult };
|
|
1
|
+
export type AwaitedResult<T extends (...args: any) => any> = Awaited<ReturnType<T>>;
|
|
5
2
|
//# sourceMappingURL=AwaitedResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AwaitedResult.d.ts","
|
|
1
|
+
{"version":3,"file":"AwaitedResult.d.ts","sourceRoot":"","sources":["../../src/lib/AwaitedResult.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,IAAI,OAAO,CAClE,UAAU,CAAC,CAAC,CAAC,CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare type BrowserNativeObject = Date | FileList | File;
|
|
3
|
-
//#endregion
|
|
4
|
-
export { BrowserNativeObject };
|
|
1
|
+
export declare type BrowserNativeObject = Date | FileList | File;
|
|
5
2
|
//# sourceMappingURL=BrowserNativeObject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserNativeObject.d.ts","
|
|
1
|
+
{"version":3,"file":"BrowserNativeObject.d.ts","sourceRoot":"","sources":["../../src/lib/BrowserNativeObject.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,mBAAmB,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare type DeepInfiniteArray<T> = (T | DeepInfiniteArray<T>)[];
|
|
3
|
-
//#endregion
|
|
4
|
-
export { DeepInfiniteArray };
|
|
1
|
+
export declare type DeepInfiniteArray<T> = (T | DeepInfiniteArray<T>)[];
|
|
5
2
|
//# sourceMappingURL=DeepInfiniteArray.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepInfiniteArray.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepInfiniteArray.d.ts","sourceRoot":"","sources":["../../src/lib/DeepInfiniteArray.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { KeepOnly } from
|
|
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 };
|
|
1
|
+
import type { KeepOnly } from './KeepOnly';
|
|
2
|
+
export 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>);
|
|
7
3
|
//# sourceMappingURL=DeepKeepOnly.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepKeepOnly.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepKeepOnly.d.ts","sourceRoot":"","sources":["../../src/lib/DeepKeepOnly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,QAAQ,IAChC,CAAC,GACD,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAClB,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,GACvB,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC7B,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,GACjD,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACpB,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,GAC1B,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC"}
|
package/dist/lib/DeepKeepOnly.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/dist/lib/DeepKey.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
export 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;
|
|
5
2
|
//# sourceMappingURL=DeepKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepKey.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepKey.d.ts","sourceRoot":"","sources":["../../src/lib/DeepKey.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,MAAM,GAC3E,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,GAEd,GAAG,CAAC,EAAE,GACN,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,GACtE,KAAK,GACP,KAAK,CAAC"}
|
package/dist/lib/DeepKey.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/dist/lib/DeepMap.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { BrowserNativeObject } from
|
|
2
|
-
import { IsAny } from
|
|
3
|
-
import { NestedValue } from
|
|
4
|
-
import { NonUndefined } from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//#endregion
|
|
9
|
-
export { DeepMap };
|
|
1
|
+
import type { BrowserNativeObject } from './BrowserNativeObject';
|
|
2
|
+
import type { IsAny } from './IsAny';
|
|
3
|
+
import type { NestedValue } from './NestedValue';
|
|
4
|
+
import type { NonUndefined } from './NonUndefined';
|
|
5
|
+
export declare type DeepMap<T, TValue> = IsAny<T> extends true ? any : T extends BrowserNativeObject | NestedValue ? TValue : T extends object ? {
|
|
6
|
+
[K in keyof T]: DeepMap<NonUndefined<T[K]>, TValue>;
|
|
7
|
+
} : TValue;
|
|
10
8
|
//# sourceMappingURL=DeepMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepMap.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepMap.d.ts","sourceRoot":"","sources":["../../src/lib/DeepMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,CAAC,OAAO,MAAM,OAAO,CAAC,CAAC,EAAE,MAAM,IACnC,KAAK,CAAC,CAAC,CAAC,SAAS,IAAI,GAEjB,GAAG,GACH,CAAC,SAAS,mBAAmB,GAAG,WAAW,GACzC,MAAM,GACN,CAAC,SAAS,MAAM,GACd;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;CACpD,GACD,MAAM,CAAC"}
|
package/dist/lib/DeepMap.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { DeepOr } from
|
|
2
|
-
|
|
3
|
-
//#region src/lib/DeepNullable.d.ts
|
|
4
|
-
type DeepNullable<T> = DeepOr<T, null>;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { DeepNullable };
|
|
1
|
+
import type { DeepOr } from './DeepOr';
|
|
2
|
+
export type DeepNullable<T> = DeepOr<T, null>;
|
|
7
3
|
//# sourceMappingURL=DeepNullable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepNullable.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepNullable.d.ts","sourceRoot":"","sources":["../../src/lib/DeepNullable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC"}
|
package/dist/lib/DeepNullable.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/dist/lib/DeepOr.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { DeepOr };
|
|
1
|
+
export 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 ? {
|
|
2
|
+
[K in keyof T]: DeepOr<T[K], OrValue> | OrValue;
|
|
3
|
+
} : T);
|
|
5
4
|
//# sourceMappingURL=DeepOr.d.ts.map
|
package/dist/lib/DeepOr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepOr.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepOr.d.ts","sourceRoot":"","sources":["../../src/lib/DeepOr.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,OAAO,IACzB,CAAC,GACD,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAClB,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,GACpB,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC7B,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAC3C,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACpB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GACvB,CAAC,SAAS,MAAM,GACd;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO;CAChD,GACD,CAAC,CAAC,CAAC"}
|
package/dist/lib/DeepOr.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
//#region src/lib/DeepPartial.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Same as Partial<T> but goes deeper and makes Partial<T> all its properties and sub-properties.
|
|
4
3
|
*/
|
|
5
|
-
type DeepPartial<T> = {
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export type DeepPartial<T> = {
|
|
5
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
6
|
+
};
|
|
8
7
|
//# sourceMappingURL=DeepPartial.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepPartial.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepPartial.d.ts","sourceRoot":"","sources":["../../src/lib/DeepPartial.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC"}
|
package/dist/lib/DeepPartial.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { DeepReplace };
|
|
1
|
+
export 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 ? {
|
|
2
|
+
[ObjKey in keyof T]: DeepReplace<T[ObjKey], Search, Replace>;
|
|
3
|
+
} : T extends Search ? Replace : T;
|
|
5
4
|
//# sourceMappingURL=DeepReplace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepReplace.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepReplace.d.ts","sourceRoot":"","sources":["../../src/lib/DeepReplace.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,UAAU,CAAC,EAAE,GACxE,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAC1C,CAAC,SAAS,GAAG,CAAC,MAAM,MAAM,EAAE,MAAM,IAAI,CAAC,GACrC,GAAG,CACD,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EACpC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CACnC,GACD,CAAC,SAAS,GAAG,CAAC,MAAM,IAAI,CAAC,GACvB,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,GACvC,CAAC,SAAS,MAAM,GACd;KACG,MAAM,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC;CAC7D,GACD,CAAC,SAAS,MAAM,GACd,OAAO,GACP,CAAC,CAAC"}
|
package/dist/lib/DeepReplace.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { DeepReplace } from
|
|
2
|
-
|
|
3
|
-
//#region src/lib/DeepReplaceNullByUndefined.d.ts
|
|
4
|
-
type DeepReplaceNullByUndefined<T> = DeepReplace<T, null, undefined>;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { DeepReplaceNullByUndefined };
|
|
1
|
+
import type { DeepReplace } from './DeepReplace';
|
|
2
|
+
export type DeepReplaceNullByUndefined<T> = DeepReplace<T, null, undefined>;
|
|
7
3
|
//# sourceMappingURL=DeepReplaceNullByUndefined.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepReplaceNullByUndefined.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepReplaceNullByUndefined.d.ts","sourceRoot":"","sources":["../../src/lib/DeepReplaceNullByUndefined.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,MAAM,0BAA0B,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/dist/lib/DeepValue.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { DeepKey } from
|
|
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 };
|
|
1
|
+
import type { DeepKey } from './DeepKey';
|
|
2
|
+
export 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];
|
|
7
3
|
//# sourceMappingURL=DeepValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeepValue.d.ts","
|
|
1
|
+
{"version":3,"file":"DeepValue.d.ts","sourceRoot":"","sources":["../../src/lib/DeepValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,MAAM,SAAS,CACnB,CAAC,EACD,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,IAClB,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,IAAI,EAAE,GACpC,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,GAC1E,CAAC,SAAS,KAAK,GACb,KAAK,GACL,IAAI,SAAS,OAAO,CAAC,CAAC,CAAC,GACrB,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,GAClB,KAAK,GACT,KAAK,GACP,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC"}
|
package/dist/lib/DeepValue.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type DictionaryFromEnum<Enum, ObjMapping> = Record<keyof Enum, ObjMapping>;
|
|
3
|
-
//#endregion
|
|
4
|
-
export { DictionaryFromEnum };
|
|
1
|
+
export type DictionaryFromEnum<Enum, ObjMapping> = Record<keyof Enum, ObjMapping>;
|
|
5
2
|
//# sourceMappingURL=DictionaryFromEnum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryFromEnum.d.ts","
|
|
1
|
+
{"version":3,"file":"DictionaryFromEnum.d.ts","sourceRoot":"","sources":["../../src/lib/DictionaryFromEnum.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,CAAC,IAAI,EAAE,UAAU,IAAI,MAAM,CACvD,MAAM,IAAI,EACV,UAAU,CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { DictionaryFromEnumMapping };
|
|
1
|
+
export type DictionaryFromEnumMapping<Enum, Mapped, Mapping extends Record<keyof Enum, Mapped>> = {
|
|
2
|
+
[k in keyof Enum]: Mapping[k];
|
|
3
|
+
};
|
|
5
4
|
//# sourceMappingURL=DictionaryFromEnumMapping.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryFromEnumMapping.d.ts","
|
|
1
|
+
{"version":3,"file":"DictionaryFromEnumMapping.d.ts","sourceRoot":"","sources":["../../src/lib/DictionaryFromEnumMapping.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,CACnC,IAAI,EACJ,MAAM,EACN,OAAO,SAAS,MAAM,CAAC,MAAM,IAAI,EAAE,MAAM,CAAC,IACxC;KACD,CAAC,IAAI,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
type
|
|
3
|
-
type
|
|
4
|
-
type AnyRecord = Record<string, any>;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { AnyRecord, EmptyRecord, UnknownRecord };
|
|
1
|
+
export type EmptyRecord = Record<string, never>;
|
|
2
|
+
export type UnknownRecord = Record<string, unknown>;
|
|
3
|
+
export type AnyRecord = Record<string, any>;
|
|
7
4
|
//# sourceMappingURL=EmptyRecord.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyRecord.d.ts","
|
|
1
|
+
{"version":3,"file":"EmptyRecord.d.ts","sourceRoot":"","sources":["../../src/lib/EmptyRecord.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAChD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
package/dist/lib/EmptyRecord.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/dist/lib/Identified.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Identified.d.ts","
|
|
1
|
+
{"version":3,"file":"Identified.d.ts","sourceRoot":"","sources":["../../src/lib/Identified.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
package/dist/lib/Identified.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { Identified } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type IdentifiedLabel = Identified & {
|
|
5
|
-
label: string;
|
|
1
|
+
import type { Identified } from './Identified';
|
|
2
|
+
export type IdentifiedLabel = Identified & {
|
|
3
|
+
label: string;
|
|
6
4
|
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { IdentifiedLabel };
|
|
9
5
|
//# sourceMappingURL=IdentifiedLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentifiedLabel.d.ts","
|
|
1
|
+
{"version":3,"file":"IdentifiedLabel.d.ts","sourceRoot":"","sources":["../../src/lib/IdentifiedLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/dist/lib/IsAny.d.ts
CHANGED
package/dist/lib/IsAny.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IsAny.d.ts","
|
|
1
|
+
{"version":3,"file":"IsAny.d.ts","sourceRoot":"","sources":["../../src/lib/IsAny.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
package/dist/lib/IsAny.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/dist/lib/Json.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
declare type
|
|
3
|
-
|
|
4
|
-
interface JSONArray extends Array<JSONValue> {}
|
|
5
|
-
interface JSONObject {
|
|
6
|
-
[key: string]: JSONValue;
|
|
1
|
+
export declare type PrimitiveJSONValue = string | number | boolean | undefined | null;
|
|
2
|
+
export declare type JSONValue = PrimitiveJSONValue | JSONArray | JSONObject;
|
|
3
|
+
export interface JSONArray extends Array<JSONValue> {
|
|
7
4
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
interface NonJsonObject<ExtraTypes> {
|
|
11
|
-
[key: string]: NonJsonValue<ExtraTypes>;
|
|
5
|
+
export interface JSONObject {
|
|
6
|
+
[key: string]: JSONValue;
|
|
12
7
|
}
|
|
13
|
-
type
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
export declare type NonJsonValue<ExtraTypes> = PrimitiveJSONValue | NonJsonArray<ExtraTypes> | NonJsonObject<ExtraTypes> | ExtraTypes;
|
|
9
|
+
export interface NonJsonArray<ExtraTypes> extends Array<NonJsonValue<ExtraTypes>> {
|
|
10
|
+
}
|
|
11
|
+
export interface NonJsonObject<ExtraTypes> {
|
|
12
|
+
[key: string]: NonJsonValue<ExtraTypes>;
|
|
13
|
+
}
|
|
14
|
+
export type ExtendedJsonObject = NonJsonObject<bigint | Date>;
|
|
16
15
|
//# sourceMappingURL=Json.d.ts.map
|