Repository navigation
Commit dfb19a4
committed
doc: add missing return types in fs.md
Three entries in the fs documentation described their return
value only in prose, or not at all, so doc-kit could not parse
a return type and fell back to `void`:
* `filehandle[Symbol.asyncDispose]()` and
`dir[Symbol.asyncDispose]()` both return a promise, matching
the existing `Returns: {Promise}` annotations on other async
dispose methods.
* `new fs.Utf8Stream([options])` is a constructor and returns
an instance of the class.
Verified at runtime and by rendering the page locally with
doc-kit.
Refs: nodejs/doc-kit#953
Signed-off-by: Chxxeton <43923165+Chxxeton@users.noreply.github.com>1 parent 54bdc2e commit dfb19a4
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
| 1194 | + | |
| 1195 | + | |
1194 | 1196 | | |
1195 | 1197 | | |
1196 | 1198 | | |
| |||
7348 | 7350 | | |
7349 | 7351 | | |
7350 | 7352 | | |
| 7353 | + | |
| 7354 | + | |
7351 | 7355 | | |
7352 | 7356 | | |
7353 | 7357 | | |
| |||
8413 | 8417 | | |
8414 | 8418 | | |
8415 | 8419 | | |
| 8420 | + | |
8416 | 8421 | | |
8417 | 8422 | | |
8418 | 8423 | | |
| |||
0 commit comments