@@ -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
*/
@@ -229,17 +216,12 @@ class DefaultModuleLoader {
229
216
230
217
/**
231
218
* This method is usually called indirectly as part of the loading processes.
232
- * Internally, it is used directly to add loaders. Use directly with caution.
233
- *
234
- * This method must NOT be renamed: it functions as a dynamic import on a
235
- * loader module.
219
+ * Use directly with caution.
236
220
* @param {string } specifier The first parameter of an `import()` expression.
237
221
* @param {string } parentURL Path of the parent importing the module.
238
222
* @param {Record<string, string> } importAssertions Validations for the
239
223
* module import.
240
- * @returns {Promise<ExportedHooks | KeyedExports[]> }
241
- * A collection of module export(s) or a list of collections of module
242
- * export(s).
224
+ * @returns {Promise<ModuleExports> }
243
225
*/
244
226
async import ( specifier , parentURL , importAssertions ) {
245
227
const moduleJob = this . getModuleJob ( specifier , parentURL , importAssertions ) ;
0 commit comments