Skip to content

Commit c4a113c

Browse files
committed
fix(import-bundle): Generalize type of importBundle to given generic or any
1 parent 91e4f7e commit c4a113c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/import-bundle/src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ import { wrapInescapableCompartment } from './compartment-wrapper.js';
2222
* importBundle takes the output of `bundleSource` or `bundleTestExports`, and returns a namespace
2323
* object (with .default, and maybe other properties for named exports)
2424
*
25+
* @template [T=any]
2526
* @param {ImportableBundle} bundle
2627
* @param {object} [options]
2728
* @param {object} [powers]
28-
* @returns {Promise<Record<string, any>>}
29+
* @returns {Promise<T>}
2930
*/
3031
export async function importBundle(bundle, options = {}, powers = {}) {
3132
await null;

0 commit comments

Comments
 (0)