esm: add JSDoc property descriptions for loader

PR-URL: https://github.com/nodejs/node/pull/45370
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
This commit is contained in:
Rich Trott authored and Node.js GitHub Bot committed 2022-11-12 04:09:56 +00:00
1 parent 67a30223b9
commit fac0d415fe
1 file changed
+7 -7
+7 -7
View File
@@ -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.
*/
/**
@@ -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.
*/
/**