Skip to content
Prev Previous commit
Next Next commit
fixup: use object instead of {} in jsdoc
  • Loading branch information
targos committed Nov 18, 2025
commit 585f30d629d12450b0867c2deb4c7060e877b24f
4 changes: 2 additions & 2 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ function lazyLoadRimraf() {
/**
* Asynchronously removes a directory.
* @param {string | Buffer | URL} path
* @param {{}} [options]
* @param {object} [options]
* @param {(err?: Error) => any} callback
* @returns {void}
*/
Expand Down Expand Up @@ -1148,7 +1148,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) {
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/quic/quic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ class QuicSession {
#onstream = undefined;
/** @type {OnDatagramCallback|undefined} */
#ondatagram = undefined;
/** @type {{}} */
/** @type {object} */
#sessionticket = undefined;

static {
Expand Down Expand Up @@ -1846,7 +1846,7 @@ class QuicEndpoint {

/**
* Initiates a session with a remote endpoint.
* @param {{}} address
* @param {object} address
* @param {SessionOptions} [options]
* @returns {QuicSession}
*/
Expand Down
3 changes: 1 addition & 2 deletions lib/internal/webstreams/adapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down