Skip to content

Commit c36c95d

Browse files
esm: fix jsdoc type for getModuleJobForImport
1 parent 52c6449 commit c36c95d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/modules/esm/loader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const { tracingChannel } = require('diagnostics_channel');
5454
const onImport = tracingChannel('module.import');
5555

5656
/**
57+
* @typedef {import('./module_job.js').ModuleJobBase} URL
5758
* @typedef {import('url').URL} URL
5859
*/
5960

@@ -270,7 +271,7 @@ class ModuleLoader {
270271
* @param {string} [parentURL] The URL of the module where the module request is initiated.
271272
* It's undefined if it's from the root module.
272273
* @param {ImportAttributes} importAttributes Attributes from the import statement or expression.
273-
* @returns {Promise<ModuleJobBase}
274+
* @returns {Promise<ModuleJobBase>}
274275
*/
275276
async getModuleJobForImport(specifier, parentURL, importAttributes) {
276277
const resolveResult = await this.resolve(specifier, parentURL, importAttributes);

0 commit comments

Comments
 (0)