Skip to content

Commit 585f30d

Browse files
committed
fixup: use object instead of {} in jsdoc
1 parent 2d6ab30 commit 585f30d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

lib/fs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ function lazyLoadRimraf() {
11141114
/**
11151115
* Asynchronously removes a directory.
11161116
* @param {string | Buffer | URL} path
1117-
* @param {{}} [options]
1117+
* @param {object} [options]
11181118
* @param {(err?: Error) => any} callback
11191119
* @returns {void}
11201120
*/
@@ -1148,7 +1148,7 @@ function rmdir(path, options, callback) {
11481148
/**
11491149
* Synchronously removes a directory.
11501150
* @param {string | Buffer | URL} path
1151-
* @param {{}} [options]
1151+
* @param {object} [options]
11521152
* @returns {void}
11531153
*/
11541154
function rmdirSync(path, options) {

lib/internal/quic/quic.js

Lines changed: 2 additions & 2 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} */
10081008
#sessionticket = undefined;
10091009

10101010
static {
@@ -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
*/

0 commit comments

Comments
 (0)