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 danielleadams committed Jan 3, 2023
1 parent fa210f9 commit 066993a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/internal/modules/esm/loader.js
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 066993a

Please sign in to comment.