From 2ef5e46814f45acd0dd28a51e50b104b31ba48fe Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Fri, 15 Dec 2023 13:31:48 -0800 Subject: [PATCH] chore(types): BootstrapModules --- packages/vats/src/core/boot-chain.js | 1 + packages/vats/src/core/types-ambient.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vats/src/core/boot-chain.js b/packages/vats/src/core/boot-chain.js index 522e471866d6..bb8b9e4a1087 100644 --- a/packages/vats/src/core/boot-chain.js +++ b/packages/vats/src/core/boot-chain.js @@ -17,6 +17,7 @@ const modules = { behaviors: { ...behaviors }, utils: { ...utils }, }; +/** @typedef {typeof modules} BootstrapModules */ export const MANIFEST = CHAIN_BOOTSTRAP_MANIFEST; diff --git a/packages/vats/src/core/types-ambient.d.ts b/packages/vats/src/core/types-ambient.d.ts index bc58c45deb67..309c820c7bdd 100644 --- a/packages/vats/src/core/types-ambient.d.ts +++ b/packages/vats/src/core/types-ambient.d.ts @@ -397,7 +397,7 @@ type BootstrapPowers = BootstrapSpace & { vatPowers: { [prop: string]: any; D: DProxy }; vatParameters: BootstrapVatParams; runBehaviors: (manifest: unknown) => Promise; - modules: Record>; + modules: import('./boot-chain.js').BootstrapModules; }; type BootstrapSpace = WellKnownSpaces &