From 066993a10ad2da4cd5cb952dcf01b5c2b08b91db Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 7 Nov 2022 19:39:44 -0800 Subject: [PATCH] esm: add JSDoc property descriptions for loader PR-URL: https://github.com/nodejs/node/pull/45370 Reviewed-By: Akhil Marsonya Reviewed-By: Yagiz Nizipli Reviewed-By: Jacob Smith --- lib/internal/modules/esm/loader.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/internal/modules/esm/loader.js b/lib/internal/modules/esm/loader.js index 3ebfcbdf73832c..c854af316a32d3 100644 --- a/lib/internal/modules/esm/loader.js +++ b/lib/internal/modules/esm/loader.js @@ -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. */ /**