@travetto/manifest 4.0.0 → 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 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: [Array] } },
71
+ methods: { doStuff: { hash: 51337554, lines: [ 2, 2 ] } },
72
72
  abstract: false,
73
73
  synthetic: false
74
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/manifest",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Support for project indexing, manifesting, along with file watching",
5
5
  "keywords": [
6
6
  "path",
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: (keyof ManifestContext)[]): T & ManifestContext => {
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
  }