Skip to content

Commit

Permalink
esm: fix jsdoc type for getModuleJobForImport
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Jan 7, 2025
1 parent 52c6449 commit c36c95d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/modules/esm/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const { tracingChannel } = require('diagnostics_channel');
const onImport = tracingChannel('module.import');

/**
* @typedef {import('./module_job.js').ModuleJobBase} URL
* @typedef {import('url').URL} URL
*/

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

0 comments on commit c36c95d

Please sign in to comment.