mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
typings: fix JSDoc in internal/modules/esm/hooks
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
dc049acbbb
commit
3faed331e1
1 file changed
+2
-1
@@ -100,6 +100,7 @@ function defineImportAssertionAlias(context) {
|
||||
* @typedef {object} KeyedHook
|
||||
* @property {Function} fn The hook function.
|
||||
* @property {URL['href']} url The URL of the module.
|
||||
* @property {KeyedHook?} next The next hook in the chain.
|
||||
*/
|
||||
|
||||
// [2] `validate...()`s throw the wrong error
|
||||
@@ -688,7 +689,7 @@ function pluckHooks({
|
||||
* A utility function to iterate through a hook chain, track advancement in the
|
||||
* chain, and generate and supply the `next<HookName>` argument to the custom
|
||||
* hook.
|
||||
* @param {Hook} current The (currently) first hook in the chain (this shifts
|
||||
* @param {KeyedHook} current The (currently) first hook in the chain (this shifts
|
||||
* on every call).
|
||||
* @param {object} meta Properties that change as the current hook advances
|
||||
* along the chain.
|
||||
|
||||
Reference in new issue
Block a user