lib,test: fix jsdoc comments

To prepare for eslint-plugin-jsdoc update.

Refs: https://github.com/nodejs/node/pull/60535
PR-URL: https://github.com/nodejs/node/pull/60870
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Michaël Zasso
2025-11-27 10:50:12 +01:00
parent d0c102495a
commit 10837e33b0
4 changed files with 7 additions and 8 deletions

View File

@@ -1115,7 +1115,7 @@ function lazyLoadRimraf() {
/**
* Asynchronously removes a directory.
* @param {string | Buffer | URL} path
* @param {{}} [options]
* @param {object} [options]
* @param {(err?: Error) => any} callback
* @returns {void}
*/
@@ -1149,7 +1149,7 @@ function rmdir(path, options, callback) {
/**
* Synchronously removes a directory.
* @param {string | Buffer | URL} path
* @param {{}} [options]
* @param {object} [options]
* @returns {void}
*/
function rmdirSync(path, options) {

View File

@@ -1004,7 +1004,7 @@ class QuicSession {
#onstream = undefined;
/** @type {OnDatagramCallback|undefined} */
#ondatagram = undefined;
/** @type {{}} */
/** @type {object|undefined} */
#sessionticket = undefined;
static {
@@ -1050,7 +1050,7 @@ class QuicSession {
/**
* Get the session ticket associated with this session, if any.
* @type {any}
* @type {object|undefined}
*/
get sessionticket() {
QuicSession.#assertIsQuicSession(this);
@@ -1846,7 +1846,7 @@ class QuicEndpoint {
/**
* Initiates a session with a remote endpoint.
* @param {{}} address
* @param {object} address
* @param {SessionOptions} [options]
* @returns {QuicSession}
*/

View File

@@ -893,8 +893,7 @@ function newStreamDuplexFromReadableWritablePair(pair = kEmptyObject, options =
/**
* @typedef {import('./queuingstrategies').QueuingStrategy} QueuingStrategy
* @typedef {{}} StreamBase
* @param {StreamBase} streamBase
* @param {object} streamBase
* @param {QueuingStrategy} strategy
* @returns {WritableStream}
*/

View File

@@ -327,7 +327,7 @@ function getHeapSnapshotOptionTests() {
}
/**
* Similar to @see {validateByRetainingPathFromNodes} but creates the snapshot from scratch.
* Similar to {@link validateByRetainingPathFromNodes} but creates the snapshot from scratch.
* @returns {object[]}
*/
function validateByRetainingPath(...args) {