From 1ec9e58692712757fc1364253d54352a1ff561e3 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Wed, 24 Apr 2024 12:07:22 -0400 Subject: [PATCH] typings: fix invalid JSDoc declarations PR-URL: https://github.com/nodejs/node/pull/52659 Reviewed-By: Geoffrey Booth Reviewed-By: Luigi Pinca Reviewed-By: Marco Ippolito Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Jacob Smith Reviewed-By: Moshe Atlow --- lib/internal/modules/esm/loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/modules/esm/loader.js b/lib/internal/modules/esm/loader.js index fd4faa3bd4af62..7ab5078ffc9307 100644 --- a/lib/internal/modules/esm/loader.js +++ b/lib/internal/modules/esm/loader.js @@ -29,7 +29,7 @@ let defaultResolve, defaultLoad, defaultLoadSync, importMetaInitializer; /** * Lazy loads the module_map module and returns a new instance of ResolveCache. - * @returns {import('./module_map.js').ResolveCache')} + * @returns {import('./module_map.js').ResolveCache} */ function newResolveCache() { const { ResolveCache } = require('internal/modules/esm/module_map'); @@ -38,7 +38,7 @@ function newResolveCache() { /** * Generate a load cache (to store the final result of a load-chain for a particular module). - * @returns {import('./module_map.js').LoadCache')} + * @returns {import('./module_map.js').LoadCache} */ function newLoadCache() { const { LoadCache } = require('internal/modules/esm/module_map');