Skip to content

Commit 2793e8b

Browse files
authored
typings: fix JSDoc in internal/modules/esm/hooks
PR-URL: #50887 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Jacob Smith <jacob@frende.me>
1 parent cdb6519 commit 2793e8b

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
@@ -100,6 +100,7 @@ function defineImportAssertionAlias(context) {
100100
* @typedef {object} KeyedHook
101101
* @property {Function} fn The hook function.
102102
* @property {URL['href']} url The URL of the module.
103+
* @property {KeyedHook?} next The next hook in the chain.
103104
*/
104105

105106
// [2] `validate...()`s throw the wrong error
@@ -688,7 +689,7 @@ function pluckHooks({
688689
* A utility function to iterate through a hook chain, track advancement in the
689690
* chain, and generate and supply the `next<HookName>` argument to the custom
690691
* hook.
691-
* @param {Hook} current The (currently) first hook in the chain (this shifts
692+
* @param {KeyedHook} current The (currently) first hook in the chain (this shifts
692693
* on every call).
693694
* @param {object} meta Properties that change as the current hook advances
694695
* along the chain.

0 commit comments

Comments
 (0)