@@ -39,23 +39,10 @@ function getTranslators() {
39
39
*/
40
40
let hooksProxy ;
41
41
42
- /**
43
- * @typedef {object } ExportedHooks
44
- * @property {Function } globalPreload Global preload hook.
45
- * @property {Function } resolve Resolve hook.
46
- * @property {Function } load Load hook.
47
- */
48
-
49
42
/**
50
43
* @typedef {Record<string, any> } ModuleExports
51
44
*/
52
45
53
- /**
54
- * @typedef {object } KeyedExports
55
- * @property {ModuleExports } exports The contents of the module.
56
- * @property {URL['href'] } url The URL of the module.
57
- */
58
-
59
46
/**
60
47
* @typedef {'builtin'|'commonjs'|'json'|'module'|'wasm' } ModuleFormat
61
48
*/
@@ -239,17 +226,12 @@ class DefaultModuleLoader {
239
226
240
227
/**
241
228
* This method is usually called indirectly as part of the loading processes.
242
- * Internally, it is used directly to add loaders. Use directly with caution.
243
- *
244
- * This method must NOT be renamed: it functions as a dynamic import on a
245
- * loader module.
229
+ * Use directly with caution.
246
230
* @param {string } specifier The first parameter of an `import()` expression.
247
231
* @param {string } parentURL Path of the parent importing the module.
248
232
* @param {Record<string, string> } importAssertions Validations for the
249
233
* module import.
250
- * @returns {Promise<ExportedHooks | KeyedExports[]> }
251
- * A collection of module export(s) or a list of collections of module
252
- * export(s).
234
+ * @returns {Promise<ModuleExports> }
253
235
*/
254
236
async import ( specifier , parentURL , importAssertions ) {
255
237
const moduleJob = this . getModuleJob ( specifier , parentURL , importAssertions ) ;
0 commit comments