Skip to content

Commit

Permalink
esm: add JSDoc property descriptions for loader
Browse files Browse the repository at this point in the history
PR-URL: #45370
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
  • Loading branch information
Trott authored and ruyadorno committed Nov 21, 2022
1 parent 4e5ad9d commit 8906a4e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/internal/modules/esm/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ const { getOptionValue } = require('internal/options');

/**
* @typedef {object} ExportedHooks
* @property {Function} globalPreload
* @property {Function} resolve
* @property {Function} load
* @property {Function} globalPreload Global preload hook.
* @property {Function} resolve Resolve hook.
* @property {Function} load Load hook.
*/

/**
Expand All @@ -69,14 +69,14 @@ const { getOptionValue } = require('internal/options');

/**
* @typedef {object} KeyedExports
* @property {ModuleExports} exports
* @property {URL['href']} url
* @property {ModuleExports} exports The contents of the module.
* @property {URL['href']} url The URL of the module.
*/

/**
* @typedef {object} KeyedHook
* @property {Function} fn
* @property {URL['href']} url
* @property {Function} fn The hook function.
* @property {URL['href']} url The URL of the module.
*/

/**
Expand Down

0 comments on commit 8906a4e

Please sign in to comment.