Skip to content

Commit 6375540

Browse files
himself65richardlau
authored andcommitted
typings: fix JSDoc in internal/modules/esm/hooks
PR-URL: #50887 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
1 parent f13643d commit 6375540

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/modules/esm/hooks.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ function defineImportAssertionAlias(context) {
108108
* @typedef {object} KeyedHook
109109
* @property {Function} fn The hook function.
110110
* @property {URL['href']} url The URL of the module.
111+
* @property {KeyedHook?} next The next hook in the chain.
111112
*/
112113

113114
// [2] `validate...()`s throw the wrong error
@@ -804,7 +805,7 @@ function pluckHooks({
804805
* A utility function to iterate through a hook chain, track advancement in the
805806
* chain, and generate and supply the `next<HookName>` argument to the custom
806807
* hook.
807-
* @param {Hook} current The (currently) first hook in the chain (this shifts
808+
* @param {KeyedHook} current The (currently) first hook in the chain (this shifts
808809
* on every call).
809810
* @param {object} meta Properties that change as the current hook advances
810811
* along the chain.

0 commit comments

Comments
 (0)