pwi-plata-type 0.4.184 → 0.4.187
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
CHANGED
package/src/@types/global.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ type StringKeyOfObject<T extends Object> = Exclude<{
|
|
|
18
18
|
type AnyRecord<T> = {
|
|
19
19
|
[P in string]: T;
|
|
20
20
|
}
|
|
21
|
-
type LooseAutocomplete<T extends string> = T |
|
|
21
|
+
type LooseAutocomplete<T extends string> = T | (string & {})
|
|
22
22
|
|
|
23
23
|
type Replace<T, O, U> = T extends O ? Exclude<T, O> | U : T
|
|
24
24
|
|
|
@@ -106,9 +106,11 @@ interface PlataEnvConfig {
|
|
|
106
106
|
env: PlataEnv
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
type DeepWritable<T extends {}> = {
|
|
110
|
-
-readonly [K in keyof T]: T[K] extends Dictionary<any> ?
|
|
111
|
-
|
|
109
|
+
type DeepWritable<T extends {}> = Prettify<{
|
|
110
|
+
-readonly [K in keyof T]: T[K] extends Dictionary<any> ?
|
|
111
|
+
T[K] extends Date ? Date : DeepWritable<T[K]>
|
|
112
|
+
: T[K]
|
|
113
|
+
}>
|
|
112
114
|
|
|
113
115
|
type ArrayCombine<T extends readonly any[]> =
|
|
114
116
|
T extends readonly [ infer U extends T[number] ] ? U
|
package/src/bin/plata-runtime.ts
CHANGED