Skip to content

Commit 9af1ab2

Browse files
committed
fix(import-bundle): Withdraw importBundle type signature
1 parent a222ab5 commit 9af1ab2

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

packages/import-bundle/src/index.js

+12-10
Original file line numberDiff line numberDiff 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>}
3133
export async function importBundle(bundle, options = {}, powers = {}) {
3234
await null;
3335
const {

0 commit comments

Comments
 (0)