Skip to content

Commit 066993a

Browse files
Trottdanielleadams
authored andcommitted
esm: add JSDoc property descriptions for loader
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>
1 parent fa210f9 commit 066993a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/internal/modules/esm/loader.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ const { getOptionValue } = require('internal/options');
5858

5959
/**
6060
* @typedef {object} ExportedHooks
61-
* @property {Function} globalPreload
62-
* @property {Function} resolve
63-
* @property {Function} load
61+
* @property {Function} globalPreload Global preload hook.
62+
* @property {Function} resolve Resolve hook.
63+
* @property {Function} load Load hook.
6464
*/
6565

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

7070
/**
7171
* @typedef {object} KeyedExports
72-
* @property {ModuleExports} exports
73-
* @property {URL['href']} url
72+
* @property {ModuleExports} exports The contents of the module.
73+
* @property {URL['href']} url The URL of the module.
7474
*/
7575

7676
/**
7777
* @typedef {object} KeyedHook
78-
* @property {Function} fn
79-
* @property {URL['href']} url
78+
* @property {Function} fn The hook function.
79+
* @property {URL['href']} url The URL of the module.
8080
*/
8181

8282
/**

0 commit comments

Comments
 (0)