File tree 1 file changed +12
-10
lines changed
packages/import-bundle/src
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,18 @@ import { wrapInescapableCompartment } from './compartment-wrapper.js';
18
18
* @typedef {import('@endo/bundle-source').BundleSourceResult<any> | {moduleFormat: 'test'} } ImportableBundle
19
19
*/
20
20
21
- /**
22
- * importBundle takes the output of `bundleSource` or `bundleTestExports`, and returns a namespace
23
- * object (with .default, and maybe other properties for named exports)
24
- *
25
- * @template [T=any]
26
- * @param {ImportableBundle } bundle
27
- * @param {object } [options]
28
- * @param {object } [powers]
29
- * @returns {Promise<T> }
30
- */
21
+ // importBundle takes the output of `bundleSource` or `bundleTestExports`, and
22
+ // returns a namespace object (with .default, and maybe other properties for
23
+ // named exports)
24
+ //
25
+ // This is the intended signature but produces a type that is not suitable
26
+ // in integration with legacy code of Agoric SDK.
27
+ //
28
+ // @template [T=any]
29
+ // @param {ImportableBundle } bundle
30
+ // @param {object } [options]
31
+ // @param {object } [powers]
32
+ // @returns {Promise<T> }
31
33
export async function importBundle ( bundle , options = { } , powers = { } ) {
32
34
await null ;
33
35
const {
You can’t perform that action at this time.
0 commit comments