From 8906a4e58e06aa87cf955a6321f66de19c84509f 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 0f23d48084abe8..55c17d97ec5695 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. */ /**