@@ -39,23 +39,10 @@ function getTranslators() {
3939 */
4040let hooksProxy ;
4141
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-
4942/**
5043 * @typedef {Record<string, any> } ModuleExports
5144 */
5245
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-
5946/**
6047 * @typedef {'builtin'|'commonjs'|'json'|'module'|'wasm' } ModuleFormat
6148 */
@@ -229,17 +216,12 @@ class DefaultModuleLoader {
229216
230217 /**
231218 * 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.
236220 * @param {string } specifier The first parameter of an `import()` expression.
237221 * @param {string } parentURL Path of the parent importing the module.
238222 * @param {Record<string, string> } importAssertions Validations for the
239223 * 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> }
243225 */
244226 async import ( specifier , parentURL , importAssertions ) {
245227 const moduleJob = this . getModuleJob ( specifier , parentURL , importAssertions ) ;
0 commit comments