GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — typings: fix JSDoc in `internal/modules/esm/hooks` · nodejs/node@3faed33

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/modules/esm
    • hooks.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/modules/esm/hooks.js‎

Copy file name to clipboardExpand all lines: lib/internal/modules/esm/hooks.js
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.