mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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) {
|
||||
|
||||
@@ -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}
|
||||
*/
|
||||
|
||||
@@ -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}
|
||||
*/
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user