mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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:
1 parent
67a30223b9
commit
fac0d415fe
1 file changed
+7
-7
@@ -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.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user