@travetto/runtime 8.0.0-alpha.12 → 8.0.0-alpha.14
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 +4 -4
- package/src/types.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/runtime",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Runtime for travetto applications.",
|
|
6
6
|
"keywords": [
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"directory": "module/runtime"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@travetto/manifest": "^8.0.0-alpha.
|
|
29
|
+
"@travetto/manifest": "^8.0.0-alpha.7",
|
|
30
30
|
"@types/debug": "^4.1.13",
|
|
31
31
|
"debug": "^4.4.3",
|
|
32
|
-
"temporal-polyfill-lite": "^0.3.
|
|
32
|
+
"temporal-polyfill-lite": "^0.3.4"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@travetto/transformer": "^8.0.0-alpha.
|
|
35
|
+
"@travetto/transformer": "^8.0.0-alpha.10"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"@travetto/transformer": {
|
package/src/types.ts
CHANGED
|
@@ -34,6 +34,11 @@ export type ValidFields<T, I> = {
|
|
|
34
34
|
|
|
35
35
|
export type RetainIntrinsicFields<T> = Pick<T, ValidFields<T, IntrinsicType>>;
|
|
36
36
|
|
|
37
|
+
export type ValidTypedFields<T, F> = {
|
|
38
|
+
[K in Extract<keyof T, string>]:
|
|
39
|
+
(T[K] extends F ? K : never)
|
|
40
|
+
}[Extract<keyof T, string>];
|
|
41
|
+
|
|
37
42
|
export const TypedObject: {
|
|
38
43
|
keys<T = unknown, K extends keyof T = keyof T & string>(value: T): K[];
|
|
39
44
|
fromEntries<K extends string | symbol, V>(items: ([K, V] | readonly [K, V])[]): Record<K, V>;
|