@travetto/manifest 4.0.0-rc.7 → 4.0.1
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/README.md +1 -1
- package/package.json +1 -1
- package/src/runtime.ts +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ $ trv main ./doc/lookup.ts
|
|
|
68
68
|
source: './doc/test-class.ts',
|
|
69
69
|
hash: 197152026,
|
|
70
70
|
lines: [ 1, 3 ],
|
|
71
|
-
methods: { doStuff: { hash: 51337554, lines: [
|
|
71
|
+
methods: { doStuff: { hash: 51337554, lines: [ 2, 2 ] } },
|
|
72
72
|
abstract: false,
|
|
73
73
|
synthetic: false
|
|
74
74
|
}
|
package/package.json
CHANGED
package/src/runtime.ts
CHANGED
|
@@ -115,7 +115,7 @@ class $RuntimeIndex extends ManifestIndex {
|
|
|
115
115
|
|
|
116
116
|
export const RuntimeIndex = new $RuntimeIndex(process.env.TRV_MANIFEST!);
|
|
117
117
|
|
|
118
|
-
const build = <T extends object>(inp: T, props:
|
|
118
|
+
const build = <T extends object, K extends keyof ManifestContext>(inp: T, props: K[]): T & Pick<ManifestContext, K> => {
|
|
119
119
|
for (const prop of props) {
|
|
120
120
|
Object.defineProperty(inp, prop, { configurable: false, get: () => RuntimeIndex.manifest[prop] });
|
|
121
121
|
}
|