@nu-art/ts-common 0.102.21 → 0.102.23
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/package.json +1 -1
- package/utils/types.d.ts +4 -3
- package/utils/types.js.map +1 -1
package/package.json
CHANGED
package/utils/types.d.ts
CHANGED
|
@@ -25,9 +25,10 @@ export declare type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T,
|
|
|
25
25
|
export declare type Constructor<T> = new (...args: any) => T;
|
|
26
26
|
export declare type ArrayType<T extends any[]> = T extends (infer I)[] ? I : never;
|
|
27
27
|
export declare type PartialProperties<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
28
|
-
export declare type KeyValue =
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
export declare type KeyValue = TypedKeyValue<string, string>;
|
|
29
|
+
export declare type TypedKeyValue<KeyType, ValueType> = {
|
|
30
|
+
key: KeyType;
|
|
31
|
+
value: ValueType;
|
|
31
32
|
};
|
|
32
33
|
export declare type Identity = {
|
|
33
34
|
id: string;
|
package/utils/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/main/utils/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/main/utils/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AA8DU,QAAA,kBAAkB,GAAwB,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAwBlF,QAAA,IAAI,GAAG,CAAC;AACrB,CAAC,CAAC,EAAE,CAAC"}
|