Skip to content

Commit 10837e3

Browse files
committed
lib,test: fix jsdoc comments
To prepare for eslint-plugin-jsdoc update. Refs: #60535 PR-URL: #60870 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d0c1024 commit 10837e3

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

lib/fs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ function lazyLoadRimraf() {
11151115
/**
11161116
* Asynchronously removes a directory.
11171117
* @param {string | Buffer | URL} path
1118-
* @param {{}} [options]
1118+
* @param {object} [options]
11191119
* @param {(err?: Error) => any} callback
11201120
* @returns {void}
11211121
*/
@@ -1149,7 +1149,7 @@ function rmdir(path, options, callback) {
11491149
/**
11501150
* Synchronously removes a directory.
11511151
* @param {string | Buffer | URL} path
1152-
* @param {{}} [options]
1152+
* @param {object} [options]
11531153
* @returns {void}
11541154
*/
11551155
function rmdirSync(path, options) {

lib/internal/quic/quic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ class QuicSession {
10041004
#onstream = undefined;
10051005
/** @type {OnDatagramCallback|undefined} */
10061006
#ondatagram = undefined;
1007-
/** @type {{}} */
1007+
/** @type {object|undefined} */
10081008
#sessionticket = undefined;
10091009

10101010
static {
@@ -1050,7 +1050,7 @@ class QuicSession {
10501050

10511051
/**
10521052
* Get the session ticket associated with this session, if any.
1053-
* @type {any}
1053+
* @type {object|undefined}
10541054
*/
10551055
get sessionticket() {
10561056
QuicSession.#assertIsQuicSession(this);
@@ -1846,7 +1846,7 @@ class QuicEndpoint {
18461846

18471847
/**
18481848
* Initiates a session with a remote endpoint.
1849-
* @param {{}} address
1849+
* @param {object} address
18501850
* @param {SessionOptions} [options]
18511851
* @returns {QuicSession}
18521852
*/

lib/internal/webstreams/adapters.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,7 @@ function newStreamDuplexFromReadableWritablePair(pair = kEmptyObject, options =
893893

894894
/**
895895
* @typedef {import('./queuingstrategies').QueuingStrategy} QueuingStrategy
896-
* @typedef {{}} StreamBase
897-
* @param {StreamBase} streamBase
896+
* @param {object} streamBase
898897
* @param {QueuingStrategy} strategy
899898
* @returns {WritableStream}
900899
*/

test/common/heap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function getHeapSnapshotOptionTests() {
327327
}
328328

329329
/**
330-
* Similar to @see {validateByRetainingPathFromNodes} but creates the snapshot from scratch.
330+
* Similar to {@link validateByRetainingPathFromNodes} but creates the snapshot from scratch.
331331
* @returns {object[]}
332332
*/
333333
function validateByRetainingPath(...args) {

0 commit comments

Comments
 (0)