Skip to content

Commit fd3a0cf

Browse files
committed
doc: linkify missing types
Also, alphabetize all types in type-parser.js and fix some nits in type formats. PR-URL: #18444 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 83d0f4c commit fd3a0cf

File tree

11 files changed

+62
-33
lines changed

11 files changed

+62
-33
lines changed

doc/api/async_hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ added: v8.1.0
8686
* `before` {Function} The [`before` callback][].
8787
* `after` {Function} The [`after` callback][].
8888
* `destroy` {Function} The [`destroy` callback][].
89-
* Returns: `{AsyncHook}` Instance used for disabling and enabling hooks
89+
* Returns: {AsyncHook} Instance used for disabling and enabling hooks
9090

9191
Registers functions to be called for different lifetime events of each async
9292
operation.

doc/api/cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ changes:
267267
description: This method now returns a reference to `worker`.
268268
-->
269269

270-
* Returns: {Worker} A reference to `worker`.
270+
* Returns: {cluster.Worker} A reference to `worker`.
271271

272272
In a worker, this function will close all servers, wait for the `'close'` event on
273273
those servers, and then disconnect the IPC channel.

doc/api/console.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ const { Console } = console;
7878
```
7979

8080
### new Console(stdout[, stderr])
81-
* `stdout` {Writable}
82-
* `stderr` {Writable}
81+
* `stdout` {stream.Writable}
82+
* `stderr` {stream.Writable}
8383

8484
Creates a new `Console` with one or two writable stream instances. `stdout` is a
8585
writable stream to print log or info output. `stderr` is used for warning or

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ changes:
798798

799799
* `path` {string|Buffer|URL}
800800
* `mode` {integer} **Default:** `fs.constants.F_OK`
801-
* Returns: `undefined`
801+
* Returns: {undefined}
802802

803803
Synchronously tests a user's permissions for the file or directory specified by
804804
`path`. The `mode` argument is an optional integer that specifies the

doc/api/http2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ they respectively default to:
770770
added: v8.4.0
771771
-->
772772

773-
* Extends: {Duplex}
773+
* Extends: {stream.Duplex}
774774

775775
Each instance of the `Http2Stream` class represents a bidirectional HTTP/2
776776
communications stream over an `Http2Session` instance. Any single `Http2Session`

doc/api/process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ changes:
659659

660660
* `module` {Object}
661661
* `filename` {string}
662-
* `flags` {os.constants.dlopen}. Defaults to `os.constants.dlopen.RTLD_LAZY`.
662+
* `flags` {os.constants.dlopen} Defaults to `os.constants.dlopen.RTLD_LAZY`.
663663

664664
The `process.dlopen()` method allows to dynamically load shared
665665
objects. It is primarily used by `require()` to load

doc/api/readline.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Interface's `input` *as if it were provided by the user*.
323323
added: v0.7.7
324324
-->
325325

326-
* `stream` {Writable}
326+
* `stream` {stream.Writable}
327327
* `dir` {number}
328328
* `-1` - to the left from cursor
329329
* `1` - to the right from cursor
@@ -338,7 +338,7 @@ in a specified direction identified by `dir`.
338338
added: v0.7.7
339339
-->
340340

341-
* `stream` {Writable}
341+
* `stream` {stream.Writable}
342342

343343
The `readline.clearScreenDown()` method clears the given [TTY][] stream from
344344
the current position of the cursor down.
@@ -362,9 +362,9 @@ changes:
362362
-->
363363

364364
* `options` {Object}
365-
* `input` {Readable} The [Readable][] stream to listen to. This option is
365+
* `input` {stream.Readable} The [Readable][] stream to listen to. This option is
366366
*required*.
367-
* `output` {Writable} The [Writable][] stream to write readline data to.
367+
* `output` {stream.Writable} The [Writable][] stream to write readline data to.
368368
* `completer` {Function} An optional function used for Tab autocompletion.
369369
* `terminal` {boolean} `true` if the `input` and `output` streams should be
370370
treated like a TTY, and have ANSI/VT100 escape codes written to it.
@@ -444,7 +444,7 @@ function completer(linePartial, callback) {
444444
added: v0.7.7
445445
-->
446446

447-
* `stream` {Writable}
447+
* `stream` {stream.Writable}
448448
* `x` {number}
449449
* `y` {number}
450450

@@ -456,7 +456,7 @@ given [TTY][] `stream`.
456456
added: v0.7.7
457457
-->
458458

459-
* `stream` {Readable}
459+
* `stream` {stream.Readable}
460460
* `interface` {readline.Interface}
461461

462462
The `readline.emitKeypressEvents()` method causes the given [Readable][]
@@ -482,7 +482,7 @@ if (process.stdin.isTTY)
482482
added: v0.7.7
483483
-->
484484

485-
* `stream` {Writable}
485+
* `stream` {stream.Writable}
486486
* `dx` {number}
487487
* `dy` {number}
488488

doc/api/repl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ changes:
412412
* `options` {Object|string}
413413
* `prompt` {string} The input prompt to display. Defaults to `> `
414414
(with a trailing space).
415-
* `input` {Readable} The Readable stream from which REPL input will be read.
415+
* `input` {stream.Readable} The Readable stream from which REPL input will be read.
416416
Defaults to `process.stdin`.
417-
* `output` {Writable} The Writable stream to which REPL output will be
417+
* `output` {stream.Writable} The Writable stream to which REPL output will be
418418
written. Defaults to `process.stdout`.
419419
* `terminal` {boolean} If `true`, specifies that the `output` should be
420420
treated as a TTY terminal, and have ANSI/VT100 escape codes written to it.

doc/api/stream.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ changes:
394394
-->
395395

396396
* `encoding` {string} The new default encoding
397-
* Returns: `this`
397+
* Returns: {this}
398398

399399
The `writable.setDefaultEncoding()` method sets the default `encoding` for a
400400
[Writable][] stream.
@@ -533,7 +533,7 @@ A Writable stream in object mode will always ignore the `encoding` argument.
533533
added: v8.0.0
534534
-->
535535

536-
* Returns: `this`
536+
* Returns: {this}
537537

538538
Destroy the stream, and emit the passed error. After this call, the
539539
writable stream has ended. Implementors should not override this method,
@@ -824,7 +824,7 @@ readable.isPaused(); // === false
824824
added: v0.9.4
825825
-->
826826

827-
* Returns: `this`
827+
* Returns: {this}
828828

829829
The `readable.pause()` method will cause a stream in flowing mode to stop
830830
emitting [`'data'`][] events, switching out of flowing mode. Any data that
@@ -973,7 +973,7 @@ the status of the `highWaterMark`.
973973
added: v0.9.4
974974
-->
975975

976-
* Returns: `this`
976+
* Returns: {this}
977977

978978
The `readable.resume()` method causes an explicitly paused Readable stream to
979979
resume emitting [`'data'`][] events, switching the stream into flowing mode.
@@ -996,7 +996,7 @@ added: v0.9.4
996996
-->
997997

998998
* `encoding` {string} The encoding to use.
999-
* Returns: `this`
999+
* Returns: {this}
10001000

10011001
The `readable.setEncoding()` method sets the character encoding for
10021002
data read from the Readable stream.

doc/api/tty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ is updated whenever the `'resize'` event is emitted.
126126
added: REPLACEME
127127
-->
128128

129-
* `env` {object} A object containing the environment variables to check.
129+
* `env` {Object} A object containing the environment variables to check.
130130
Defaults to `process.env`.
131131
* Returns: {number}
132132

0 commit comments

Comments
 (0)