@tstdl/base 0.71.80 → 0.71.81
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 +3 -3
- package/types.d.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tstdl/base",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.81",
|
|
4
4
|
"author": "Patrick Hein",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"luxon": "^3.0",
|
|
19
19
|
"reflect-metadata": "^0.1",
|
|
20
20
|
"rxjs": "^7.5",
|
|
21
|
-
"type-fest": "^2.
|
|
21
|
+
"type-fest": "^2.17"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/chroma-js": "2.1",
|
|
25
25
|
"@types/koa__router": "8.0",
|
|
26
|
-
"@types/luxon": "
|
|
26
|
+
"@types/luxon": "3.0",
|
|
27
27
|
"@types/minio": "7.0",
|
|
28
28
|
"@types/mjml": "4.7",
|
|
29
29
|
"@types/node": "18",
|
package/types.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare type PrimitiveObject = {
|
|
|
21
21
|
[key: string]: PrimitiveValue;
|
|
22
22
|
};
|
|
23
23
|
export declare type PrimitiveArray = PrimitiveValue[];
|
|
24
|
+
export declare type BuiltIn = Primitive | RegExp | Date | Function;
|
|
24
25
|
export declare type Json = JsonPrimitive | JsonObject | JsonArray;
|
|
25
26
|
export declare type JsonPrimitive = string | number | boolean | null;
|
|
26
27
|
export declare type JsonObject = {
|
|
@@ -126,10 +127,15 @@ export declare type DeepFlatten<T> = T extends readonly (infer R)[] ? DeepFlatte
|
|
|
126
127
|
[P in keyof T]: DeepFlatten<T[P]>;
|
|
127
128
|
} : T;
|
|
128
129
|
export declare type DeepArray<T> = (T | DeepArray<T>)[];
|
|
129
|
-
export declare type DeepReadonly<T> = T extends
|
|
130
|
+
export declare type DeepReadonly<T> = T extends BuiltIn ? T : T extends (any[] | readonly any[]) ? DeepReadonlyArray<T[number]> : DeepReadonlyObject<T>;
|
|
130
131
|
export declare type DeepReadonlyObject<T> = {
|
|
131
132
|
readonly [P in keyof T]: DeepReadonly<T[P]>;
|
|
132
133
|
};
|
|
133
134
|
export declare type DeepReadonlyArray<T> = readonly DeepReadonly<T>[];
|
|
135
|
+
export declare type DeepPartial<T> = T extends BuiltIn ? T : T extends any[] ? DeepPartialArray<T[number]> : T extends readonly any[] ? Readonly<DeepPartialArray<T[number]>> : DeepPartialObject<T>;
|
|
136
|
+
export declare type DeepPartialObject<T> = {
|
|
137
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
138
|
+
};
|
|
139
|
+
export declare type DeepPartialArray<T> = DeepPartial<T>[];
|
|
134
140
|
export declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
|
135
141
|
export declare type BinaryData = ArrayBuffer | ArrayBufferView;
|