File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
packages/import-bundle/src Expand file tree Collapse file tree 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';
1818 * @typedef {import('@endo/bundle-source').BundleSourceResult<any> | {moduleFormat: 'test'} } ImportableBundle
1919 */
2020
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> }
3133export async function importBundle ( bundle , options = { } , powers = { } ) {
3234 await null ;
3335 const {
You can’t perform that action at this time.
0 commit comments