From e40cab53d9971a3e0b34e8fb18ece74240d9425d Mon Sep 17 00:00:00 2001 From: J-295 <74157600+J-295@users.noreply.github.com> Date: Tue, 4 Jun 2024 00:11:37 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#69714=20node:=20Ad?= =?UTF-8?q?d=20missing=20spaces=20by=20@J-295?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/node/crypto.d.ts | 6 +++--- types/node/fs.d.ts | 4 ++-- types/node/net.d.ts | 2 +- types/node/v16/assert.d.ts | 2 +- types/node/v16/buffer.d.ts | 18 +++++++++--------- types/node/v16/child_process.d.ts | 2 +- types/node/v16/crypto.d.ts | 24 ++++++++++++------------ types/node/v16/dgram.d.ts | 6 +++--- types/node/v16/domain.d.ts | 2 +- types/node/v16/events.d.ts | 4 ++-- types/node/v16/fs.d.ts | 10 +++++----- types/node/v16/fs/promises.d.ts | 4 ++-- types/node/v16/http.d.ts | 10 +++++----- types/node/v16/http2.d.ts | 4 ++-- types/node/v16/https.d.ts | 4 ++-- types/node/v16/net.d.ts | 4 ++-- types/node/v16/os.d.ts | 8 ++++---- types/node/v16/perf_hooks.d.ts | 2 +- types/node/v16/process.d.ts | 4 ++-- types/node/v16/repl.d.ts | 2 +- types/node/v16/stream.d.ts | 2 +- types/node/v16/tls.d.ts | 2 +- types/node/v16/trace_events.d.ts | 2 +- types/node/v16/tty.d.ts | 4 ++-- types/node/v16/util.d.ts | 4 ++-- types/node/v18/assert.d.ts | 2 +- types/node/v18/buffer.d.ts | 18 +++++++++--------- types/node/v18/child_process.d.ts | 2 +- types/node/v18/crypto.d.ts | 24 ++++++++++++------------ types/node/v18/dgram.d.ts | 6 +++--- types/node/v18/domain.d.ts | 2 +- types/node/v18/events.d.ts | 4 ++-- types/node/v18/fs.d.ts | 14 +++++++------- types/node/v18/fs/promises.d.ts | 4 ++-- types/node/v18/http.d.ts | 10 +++++----- types/node/v18/http2.d.ts | 4 ++-- types/node/v18/https.d.ts | 4 ++-- types/node/v18/net.d.ts | 4 ++-- types/node/v18/os.d.ts | 8 ++++---- types/node/v18/perf_hooks.d.ts | 2 +- types/node/v18/process.d.ts | 4 ++-- types/node/v18/repl.d.ts | 2 +- types/node/v18/stream.d.ts | 2 +- types/node/v18/test.d.ts | 4 ++-- types/node/v18/tls.d.ts | 2 +- types/node/v18/trace_events.d.ts | 2 +- types/node/v18/tty.d.ts | 4 ++-- types/node/v18/util.d.ts | 4 ++-- 48 files changed, 134 insertions(+), 134 deletions(-) diff --git a/types/node/crypto.d.ts b/types/node/crypto.d.ts index d7ea49d7e710d2..5173dbf918e91e 100644 --- a/types/node/crypto.d.ts +++ b/types/node/crypto.d.ts @@ -689,7 +689,7 @@ declare module "crypto" { authTagLength: number; } /** - * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`. + * Creates and returns a `Cipher` object that uses the given `algorithm` and `password`. * * The `options` argument controls stream behavior and is optional except when a * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the @@ -978,7 +978,7 @@ declare module "crypto" { getAuthTag(): Buffer; } /** - * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key). + * Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key). * * The `options` argument controls stream behavior and is optional except when a * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the @@ -2871,7 +2871,7 @@ declare module "crypto" { * }); * ``` * - * On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair. + * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair. * * If this method is invoked as its `util.promisify()` ed version, it returns * a `Promise` for an `Object` with `publicKey` and `privateKey` properties. diff --git a/types/node/fs.d.ts b/types/node/fs.d.ts index 447b0469011ef8..dc1d5da807f4b9 100644 --- a/types/node/fs.d.ts +++ b/types/node/fs.d.ts @@ -302,7 +302,7 @@ declare module "fs" { /** * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. * - * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read. + * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null` if there are no more directory entries to read. * * Directory entries returned by this function are in no particular order as * provided by the operating system's underlying directory mechanisms. @@ -3617,7 +3617,7 @@ declare module "fs" { /** * Tests a user's permissions for the file or directory specified by `path`. * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` + * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for * possible values of `mode`. * diff --git a/types/node/net.d.ts b/types/node/net.d.ts index c6eb3a0ca3d1ba..238c6a63a4d51d 100644 --- a/types/node/net.d.ts +++ b/types/node/net.d.ts @@ -564,7 +564,7 @@ declare module "net" { * * All `listen()` methods can take a `backlog` parameter to specify the maximum * length of the queue of pending connections. The actual length will be determined - * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn`on Linux. The default value of this parameter is 511 (not 512). + * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512). * * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for * details). diff --git a/types/node/v16/assert.d.ts b/types/node/v16/assert.d.ts index 8f9ee6575126b9..87162973fc7a25 100644 --- a/types/node/v16/assert.d.ts +++ b/types/node/v16/assert.d.ts @@ -796,7 +796,7 @@ declare module "assert" { * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, * an object where each property will be tested for, or an instance of error where - * each property will be tested for including the non-enumerable `message` and`name` properties. + * each property will be tested for including the non-enumerable `message` and `name` properties. * * If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject. * diff --git a/types/node/v16/buffer.d.ts b/types/node/v16/buffer.d.ts index b2da96ed046aa2..7da528d8a24daf 100644 --- a/types/node/v16/buffer.d.ts +++ b/types/node/v16/buffer.d.ts @@ -61,7 +61,7 @@ declare module "buffer" { * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if * conversion from `fromEnc` to `toEnc` is not permitted. * - * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`,`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. + * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, `'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. * * The transcoding process will use substitution characters if a given byte * sequence cannot be adequately represented in the target encoding. For instance: @@ -701,7 +701,7 @@ declare module "buffer" { * // (This result is equal to: [buf1, buf3, buf2].) * ``` * - * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively. + * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd` arguments can be used to limit the comparison to specific ranges within `target` and `buf` respectively. * * ```js * import { Buffer } from 'node:buffer'; @@ -717,7 +717,7 @@ declare module "buffer" { * // Prints: 1 * ``` * - * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`,`targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. + * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`, `targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. * @since v0.11.13 * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`. * @param [targetStart=0] The offset within `target` at which to begin comparison. @@ -1135,7 +1135,7 @@ declare module "buffer" { */ readBigInt64LE(offset?: number): bigint; /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned, little-endian integer supporting + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting * up to 48 bits of accuracy. * * This function is also available under the `readUintLE` alias. @@ -1159,7 +1159,7 @@ declare module "buffer" { */ readUintLE(offset: number, byteLength: number): number; /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting * up to 48 bits of accuracy. * * This function is also available under the `readUintBE` alias. @@ -1185,7 +1185,7 @@ declare module "buffer" { */ readUintBE(offset: number, byteLength: number): number; /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value * supporting up to 48 bits of accuracy. * * ```js @@ -1202,7 +1202,7 @@ declare module "buffer" { */ readIntLE(offset: number, byteLength: number): number; /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a big-endian, two's complement signed value + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value * supporting up to 48 bits of accuracy. * * ```js @@ -2237,7 +2237,7 @@ declare module "buffer" { * **and should never be used in new code, because they use strings to represent** * **binary data and predate the introduction of typed arrays in JavaScript.** * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.** + * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** * @since v15.13.0, v14.17.0 * @legacy Use `Buffer.from(data, 'base64')` instead. * @param data The Base64-encoded input string. @@ -2253,7 +2253,7 @@ declare module "buffer" { * **and should never be used in new code, because they use strings to represent** * **binary data and predate the introduction of typed arrays in JavaScript.** * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.** + * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** * @since v15.13.0, v14.17.0 * @legacy Use `buf.toString('base64')` instead. * @param data An ASCII (Latin1) string. diff --git a/types/node/v16/child_process.d.ts b/types/node/v16/child_process.d.ts index 467313c0642802..1a5c2589342a7a 100644 --- a/types/node/v16/child_process.d.ts +++ b/types/node/v16/child_process.d.ts @@ -143,7 +143,7 @@ declare module "child_process" { /** * A sparse array of pipes to the child process, corresponding with positions in * the `stdio` option passed to {@link spawn} that have been set - * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin`,`subprocess.stdout`, and `subprocess.stderr`, + * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin`, `subprocess.stdout`, and `subprocess.stderr`, * respectively. * * In the following example, only the child's fd `1` (stdout) is configured as a diff --git a/types/node/v16/crypto.d.ts b/types/node/v16/crypto.d.ts index 838061e9e8d23d..7a5989a34c9af8 100644 --- a/types/node/v16/crypto.d.ts +++ b/types/node/v16/crypto.d.ts @@ -662,7 +662,7 @@ declare module "crypto" { authTagLength: number; } /** - * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`. + * Creates and returns a `Cipher` object that uses the given `algorithm` and `password`. * * The `options` argument controls stream behavior and is optional except when a * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the @@ -945,7 +945,7 @@ declare module "crypto" { getAuthTag(): Buffer; } /** - * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key). + * Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key). * * The `options` argument controls stream behavior and is optional except when a * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the @@ -971,7 +971,7 @@ declare module "crypto" { /** @deprecated since v10.0.0 use `createDecipheriv()` */ function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; /** - * Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`). + * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`). * * The `options` argument controls stream behavior and is optional except when a * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the @@ -1470,7 +1470,7 @@ declare module "crypto" { * The `signature` argument is the previously calculated signature for the data, in * the `signatureEncoding`. * If a `signatureEncoding` is specified, the `signature` is expected to be a - * string; otherwise `signature` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`. * * The `verify` object can not be used again after `verify.verify()` has been * called. Multiple calls to `verify.verify()` will result in an error being @@ -1568,7 +1568,7 @@ declare module "crypto" { * key is interpreted using the specified `inputEncoding`, and secret is * encoded using specified `outputEncoding`. * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. * * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned. * @since v0.5.0 @@ -1687,7 +1687,7 @@ declare module "crypto" { type DiffieHellmanGroup = Omit; /** * Creates a predefined `DiffieHellmanGroup` key exchange object. The - * supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`,`'modp16'`, `'modp17'`, + * supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`, `'modp16'`, `'modp17'`, * `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The * returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing * the keys (with `diffieHellman.setPublicKey()`, for example). The @@ -1726,7 +1726,7 @@ declare module "crypto" { * implementation. A selected HMAC digest algorithm specified by `digest` is * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`. * - * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set; + * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set; * otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be * thrown if any of the input arguments specify invalid values or types. * @@ -2301,7 +2301,7 @@ declare module "crypto" { * * If `format` is not specified the point will be returned in `'uncompressed'`format. * - * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`. * * Example (uncompressing a key): * @@ -2400,7 +2400,7 @@ declare module "crypto" { /** * Sets the EC Diffie-Hellman private key. * If `encoding` is provided, `privateKey` is expected - * to be a string; otherwise `privateKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. * * If `privateKey` is not valid for the curve specified when the `ECDH` object was * created, an error is thrown. Upon setting the private key, the associated @@ -2832,7 +2832,7 @@ declare module "crypto" { * }); * ``` * - * On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair. + * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair. * * If this method is invoked as its `util.promisify()` ed version, it returns * a `Promise` for an `Object` with `publicKey` and `privateKey` properties. @@ -3392,9 +3392,9 @@ declare module "crypto" { */ function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined; /** - * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`,`salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. + * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. * - * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set; + * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set; * otherwise `err` will be `null`. The successfully generated `derivedKey` will * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any * of the input arguments specify invalid values or types. diff --git a/types/node/v16/dgram.d.ts b/types/node/v16/dgram.d.ts index 56e6b2c9747a8f..811fb3f5eb0e54 100644 --- a/types/node/v16/dgram.d.ts +++ b/types/node/v16/dgram.d.ts @@ -93,7 +93,7 @@ declare module "dgram" { */ class Socket extends EventEmitter { /** - * Tells the kernel to join a multicast group at the given `multicastAddress` and`multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the`multicastInterface` argument is not + * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the`multicastInterface` argument is not * specified, the operating system will choose * one interface and will add membership to it. To add membership to every * available interface, call `addMembership` multiple times, once per interface. @@ -122,7 +122,7 @@ declare module "dgram" { addMembership(multicastAddress: string, multicastInterface?: string): void; /** * Returns an object containing the address information for a socket. - * For UDP sockets, this object will contain `address`, `family` and `port`properties. + * For UDP sockets, this object will contain `address`, `family` and `port` properties. * * This method throws `EBADF` if called on an unbound socket. * @since v0.1.99 @@ -276,7 +276,7 @@ declare module "dgram" { * * The `address` argument is a string. If the value of `address` is a host name, * DNS will be used to resolve the address of the host. If `address` is not - * provided or otherwise falsy, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default. + * provided or otherwise falsy, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default. * * If the socket has not been previously bound with a call to `bind`, the socket * is assigned a random port number and is bound to the "all interfaces" address diff --git a/types/node/v16/domain.d.ts b/types/node/v16/domain.d.ts index a32bb6e00940a2..53e47ffa766cc8 100644 --- a/types/node/v16/domain.d.ts +++ b/types/node/v16/domain.d.ts @@ -29,7 +29,7 @@ declare module "domain" { */ members: Array; /** - * The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and`process.domain` to the domain, and implicitly + * The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly * pushes the domain onto the domain * stack managed by the domain module (see {@link exit} for details on the * domain stack). The call to `enter()` delimits the beginning of a chain of diff --git a/types/node/v16/events.d.ts b/types/node/v16/events.d.ts index 156c2cf6a73702..33f4e933743aef 100644 --- a/types/node/v16/events.d.ts +++ b/types/node/v16/events.d.ts @@ -391,7 +391,7 @@ declare module "events" { /** * Adds the `listener` function to the end of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has - * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple + * already been added. Multiple calls passing the same combination of `eventName` and `listener` will result in the `listener` being added, and called, multiple * times. * * ```js @@ -653,7 +653,7 @@ declare module "events" { /** * Adds the `listener` function to the _beginning_ of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has - * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple + * already been added. Multiple calls passing the same combination of `eventName` and `listener` will result in the `listener` being added, and called, multiple * times. * * ```js diff --git a/types/node/v16/fs.d.ts b/types/node/v16/fs.d.ts index b1488a8002e990..5075291031e82e 100644 --- a/types/node/v16/fs.d.ts +++ b/types/node/v16/fs.d.ts @@ -235,7 +235,7 @@ declare module "fs" { /** * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. * - * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read. + * A promise is returned that will be resolved with an `fs.Dirent`, or `null` if there are no more directory entries to read. * * Directory entries returned by this function are in no particular order as * provided by the operating system's underlying directory mechanisms. @@ -2978,7 +2978,7 @@ declare module "fs" { * again, with the latest stat objects. This is a change in functionality since * v0.10. * - * Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible. + * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. * * When a file being watched by `fs.watchFile()` disappears and reappears, * then the contents of `previous` in the second callback event (the file's @@ -3028,7 +3028,7 @@ declare module "fs" { * Calling `fs.unwatchFile()` with a filename that is not being watched is a * no-op, not an error. * - * Using {@link watch} is more efficient than `fs.watchFile()` and`fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()`and `fs.unwatchFile()` when possible. + * Using {@link watch} is more efficient than `fs.watchFile()` and `fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()` and `fs.unwatchFile()` when possible. * @since v0.1.31 * @param listener Optional, a listener previously attached using `fs.watchFile()` */ @@ -3677,7 +3677,7 @@ declare module "fs" { * it may require the `flags` option to be set to `r+` rather than the default `w`. * The `encoding` can be any one of those accepted by `Buffer`. * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false, + * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, * then the file descriptor won't be closed, even if there's an error. * It is the application's responsibility to close it and make sure there's no * file descriptor leak. @@ -3688,7 +3688,7 @@ declare module "fs" { * By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev` and `close`. Overriding `write()`without `writev()` can reduce * performance as some optimizations (`_writev()`) * will be disabled. When providing the `fs` option, overrides for at least one of`write` and `writev` are required. If no `fd` option is supplied, an override - * for `open` is also required. If `autoClose` is `true`, an override for `close`is also required. + * for `open` is also required. If `autoClose` is `true`, an override for `close` is also required. * * Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the`path` argument and will use the specified file descriptor. This means that no`'open'` event will be * emitted. `fd` should be blocking; non-blocking `fd`s diff --git a/types/node/v16/fs/promises.d.ts b/types/node/v16/fs/promises.d.ts index ad9ce490541c94..041f4c5adebb67 100644 --- a/types/node/v16/fs/promises.d.ts +++ b/types/node/v16/fs/promises.d.ts @@ -172,7 +172,7 @@ declare module "fs/promises" { * it may require the `flags` `open` option to be set to `r+` rather than the * default `r`. The `encoding` can be any one of those accepted by `Buffer`. * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false, + * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, * then the file descriptor won't be closed, even if there's an error. * It is the application's responsibility to close it and make sure there's no * file descriptor leak. @@ -670,7 +670,7 @@ declare module "fs/promises" { /** * Creates a symbolic link. * - * The `type` argument is only used on Windows platforms and can be one of `'dir'`,`'file'`, or `'junction'`. Windows junction points require the destination path + * The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. Windows junction points require the destination path * to be absolute. When using `'junction'`, the `target` argument will * automatically be normalized to absolute path. * @since v10.0.0 diff --git a/types/node/v16/http.d.ts b/types/node/v16/http.d.ts index 5ae08f3791576b..07785504f94cbe 100644 --- a/types/node/v16/http.d.ts +++ b/types/node/v16/http.d.ts @@ -731,7 +731,7 @@ declare module "http" { /** * This object is created internally and returned from {@link request}. It * represents an _in-progress_ request whose header has already been queued. The - * header is still mutable using the `setHeader(name, value)`,`getHeader(name)`, `removeHeader(name)` API. The actual header will + * header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will * be sent along with the first data chunk or when calling `request.end()`. * * To get the response, add a listener for `'response'` to the request object.`'response'` will be emitted from the request object when the response @@ -1015,8 +1015,8 @@ declare module "http" { * Duplicates in raw headers are handled in the following ways, depending on the * header name: * - * * Duplicates of `age`, `authorization`, `content-length`, `content-type`,`etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`,`last-modified`, `location`, - * `max-forwards`, `proxy-authorization`, `referer`,`retry-after`, `server`, or `user-agent` are discarded. + * * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`, + * `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded. * * `set-cookie` is always an array. Duplicates are added to the array. * * For duplicate `cookie` headers, the values are joined together with '; '. * * For all other headers, the values are joined together with ', '. @@ -1088,7 +1088,7 @@ declare module "http" { * new URL(request.url, `http://${request.headers.host}`); * ``` * - * When `request.url` is `'/status?name=ryan'` and`request.headers.host` is `'localhost:3000'`: + * When `request.url` is `'/status?name=ryan'` and `request.headers.host` is `'localhost:3000'`: * * ```console * $ node @@ -1201,7 +1201,7 @@ declare module "http" { * }); * ``` * - * An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()`functions, a one-time use `Agent` with default options + * An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options * will be used * for the client connection. * diff --git a/types/node/v16/http2.d.ts b/types/node/v16/http2.d.ts index 6246c8065e3cbb..0457d67cbaac8d 100644 --- a/types/node/v16/http2.d.ts +++ b/types/node/v16/http2.d.ts @@ -764,7 +764,7 @@ declare module "http2" { * * The maximum number of outstanding (unacknowledged) pings is determined by the`maxOutstandingPings` configuration option. The default maximum is 10. * - * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView`containing 8 bytes of data that will be transmitted with the `PING` and + * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView` containing 8 bytes of data that will be transmitted with the `PING` and * returned with the ping acknowledgment. * * The callback will be invoked with three arguments: an error argument that will @@ -1897,7 +1897,7 @@ declare module "http2" { write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean; /** * Sends a status `100 Continue` to the client, indicating that the request body - * should be sent. See the `'checkContinue'` event on `Http2Server` and`Http2SecureServer`. + * should be sent. See the `'checkContinue'` event on `Http2Server` and `Http2SecureServer`. * @since v8.4.0 */ writeContinue(): void; diff --git a/types/node/v16/https.d.ts b/types/node/v16/https.d.ts index 266cd61b884650..e52acbb783d78b 100644 --- a/types/node/v16/https.d.ts +++ b/types/node/v16/https.d.ts @@ -308,8 +308,8 @@ declare module "https" { /** * Makes a request to a secure web server. * - * The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`,`honorCipherOrder`, `key`, `passphrase`, - * `pfx`, `rejectUnauthorized`,`secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`,`highWaterMark`. + * The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`, + * `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`. * * `options` can be an object, a string, or a `URL` object. If `options` is a * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. diff --git a/types/node/v16/net.d.ts b/types/node/v16/net.d.ts index 920049975a172d..45c91ce02421dd 100644 --- a/types/node/v16/net.d.ts +++ b/types/node/v16/net.d.ts @@ -253,7 +253,7 @@ declare module "net" { */ readonly bytesWritten: number; /** - * If `true`,`socket.connect(options[, connectListener])` was + * If `true`, `socket.connect(options[, connectListener])` was * called and has not yet finished. It will stay `true` until the socket becomes * connected, then it is set to `false` and the `'connect'` event is emitted. Note * that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event. @@ -481,7 +481,7 @@ declare module "net" { * * All `listen()` methods can take a `backlog` parameter to specify the maximum * length of the queue of pending connections. The actual length will be determined - * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn`on Linux. The default value of this parameter is 511 (not 512). + * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512). * * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for * details). diff --git a/types/node/v16/os.d.ts b/types/node/v16/os.d.ts index a3dd49c06595b5..5dba9e4675bb72 100644 --- a/types/node/v16/os.d.ts +++ b/types/node/v16/os.d.ts @@ -216,7 +216,7 @@ declare module "os" { /** * Returns information about the currently effective user. On POSIX platforms, * this is typically a subset of the password file. The returned object includes - * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and`gid` fields are `-1`, and `shell` is `null`. + * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`. * * The value of `homedir` returned by `os.userInfo()` is provided by the operating * system. This differs from the result of `os.homedir()`, which queries @@ -387,7 +387,7 @@ declare module "os" { const EOL: string; /** * Returns the operating system CPU architecture for which the Node.js binary was - * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`. + * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`. * * The return value is equivalent to `process.arch`. * @since v0.5.0 @@ -403,7 +403,7 @@ declare module "os" { function version(): string; /** * Returns a string identifying the operating system platform. The value is set - * at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. + * at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. * * The return value is equivalent to `process.platform`. * @@ -436,7 +436,7 @@ declare module "os" { /** * Attempts to set the scheduling priority for the process specified by `pid`. If`pid` is not provided or is `0`, the process ID of the current process is used. * - * The `priority` input must be an integer between `-20` (high priority) and `19`(low priority). Due to differences between Unix priority levels and Windows + * The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows * priority classes, `priority` is mapped to one of six priority constants in`os.constants.priority`. When retrieving a process priority level, this range * mapping may cause the return value to be slightly different on Windows. To avoid * confusion, set `priority` to one of the priority constants. diff --git a/types/node/v16/perf_hooks.d.ts b/types/node/v16/perf_hooks.d.ts index 0322c2b17babd7..c274567a53855c 100644 --- a/types/node/v16/perf_hooks.d.ts +++ b/types/node/v16/perf_hooks.d.ts @@ -407,7 +407,7 @@ declare module "perf_hooks" { */ disconnect(): void; /** - * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes`or `options.type`: + * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`: * * ```js * const { diff --git a/types/node/v16/process.d.ts b/types/node/v16/process.d.ts index 0824c921852e24..d494cf323b90a1 100644 --- a/types/node/v16/process.d.ts +++ b/types/node/v16/process.d.ts @@ -583,7 +583,7 @@ declare module "process" { * * Calling `process.exit()` will force the process to exit as quickly as possible * even if there are still asynchronous operations pending that have not yet - * completed fully, including I/O operations to `process.stdout` and`process.stderr`. + * completed fully, including I/O operations to `process.stdout` and `process.stderr`. * * In most situations, it is not actually necessary to call `process.exit()`explicitly. The Node.js process will exit on its own _if there is no additional_ * _work pending_ in the event loop. The `process.exitCode` property can be set to @@ -1062,7 +1062,7 @@ declare module "process" { title: string; /** * The operating system CPU architecture for which the Node.js binary was compiled. - * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`. + * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`. * * ```js * import { arch } from 'process'; diff --git a/types/node/v16/repl.d.ts b/types/node/v16/repl.d.ts index 6322ecb1758836..b0422e526d35b3 100644 --- a/types/node/v16/repl.d.ts +++ b/types/node/v16/repl.d.ts @@ -289,7 +289,7 @@ declare module "repl" { defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; /** * The `replServer.displayPrompt()` method readies the REPL instance for input - * from the user, printing the configured `prompt` to a new line in the `output`and resuming the `input` to accept new input. + * from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input. * * When multi-line input is being entered, an ellipsis is printed rather than the * 'prompt'. diff --git a/types/node/v16/stream.d.ts b/types/node/v16/stream.d.ts index 3e214489e1cde2..87b446b8f7c8cf 100644 --- a/types/node/v16/stream.d.ts +++ b/types/node/v16/stream.d.ts @@ -1127,7 +1127,7 @@ declare module "stream" { * ``` * * Especially useful in error handling scenarios where a stream is destroyed - * prematurely (like an aborted HTTP request), and will not emit `'end'`or `'finish'`. + * prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`. * * The `finished` API provides promise version: * diff --git a/types/node/v16/tls.d.ts b/types/node/v16/tls.d.ts index 5f007a829aab75..0a79ce1db88efe 100644 --- a/types/node/v16/tls.d.ts +++ b/types/node/v16/tls.d.ts @@ -997,7 +997,7 @@ declare module "tls" { * stream and the cleartext one is used as a replacement for the initial encrypted * stream. * - * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and`encrypted` stream properties. + * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties. * * Using `cleartext` has the same API as {@link TLSSocket}. * diff --git a/types/node/v16/trace_events.d.ts b/types/node/v16/trace_events.d.ts index d3f8be5bcabe77..7854986ac7d745 100644 --- a/types/node/v16/trace_events.d.ts +++ b/types/node/v16/trace_events.d.ts @@ -12,7 +12,7 @@ * * `node.async_hooks`: Enables capture of detailed `async_hooks` trace data. * The `async_hooks` events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property. * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones. - * * `node.console`: Enables capture of `console.time()` and `console.count()`output. + * * `node.console`: Enables capture of `console.time()` and `console.count()` output. * * `node.dns.native`: Enables capture of trace data for DNS queries. * * `node.environment`: Enables capture of Node.js Environment milestones. * * `node.fs.sync`: Enables capture of trace data for file system sync methods. diff --git a/types/node/v16/tty.d.ts b/types/node/v16/tty.d.ts index ca09cb598a2a56..1f6521ee2bdd4b 100644 --- a/types/node/v16/tty.d.ts +++ b/types/node/v16/tty.d.ts @@ -21,7 +21,7 @@ * ``` * * In most cases, there should be little to no reason for an application to - * manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes. + * manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes. * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/tty.js) */ declare module "tty" { @@ -145,7 +145,7 @@ declare module "tty" { * * 256 colors: `FORCE_COLOR = 2` * * 16,777,216 colors: `FORCE_COLOR = 3` * - * Disabling color support is also possible by using the `NO_COLOR` and`NODE_DISABLE_COLORS` environment variables. + * Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables. * @since v9.9.0 * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. */ diff --git a/types/node/v16/util.d.ts b/types/node/v16/util.d.ts index f7f6df5d047ec4..c1a289bb78ee83 100644 --- a/types/node/v16/util.d.ts +++ b/types/node/v16/util.d.ts @@ -429,7 +429,7 @@ declare module "util" { */ export function isError(object: unknown): object is Error; /** - * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and`extends` keywords to get language level inheritance support. Also note + * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note * that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179). * * Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The @@ -801,7 +801,7 @@ declare module "util" { * If the `--throw-deprecation` command-line flag is set, or the`process.throwDeprecation` property is set to `true`, then an exception will be * thrown when the deprecated function is called. * - * The `--throw-deprecation` command-line flag and `process.throwDeprecation`property take precedence over `--trace-deprecation` and`process.traceDeprecation`. + * The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`. * @since v0.8.0 * @param fn The function that is being deprecated. * @param msg A warning message to display when the deprecated function is invoked. diff --git a/types/node/v18/assert.d.ts b/types/node/v18/assert.d.ts index e4a8a78d6db95f..95860a938b3d91 100644 --- a/types/node/v18/assert.d.ts +++ b/types/node/v18/assert.d.ts @@ -795,7 +795,7 @@ declare module "assert" { * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, * an object where each property will be tested for, or an instance of error where - * each property will be tested for including the non-enumerable `message` and`name` properties. + * each property will be tested for including the non-enumerable `message` and `name` properties. * * If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject. * diff --git a/types/node/v18/buffer.d.ts b/types/node/v18/buffer.d.ts index dd03c71f66316e..4debf13dee3455 100644 --- a/types/node/v18/buffer.d.ts +++ b/types/node/v18/buffer.d.ts @@ -79,7 +79,7 @@ declare module "buffer" { * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if * conversion from `fromEnc` to `toEnc` is not permitted. * - * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`,`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. + * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, `'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. * * The transcoding process will use substitution characters if a given byte * sequence cannot be adequately represented in the target encoding. For instance: @@ -771,7 +771,7 @@ declare module "buffer" { * // (This result is equal to: [buf1, buf3, buf2].) * ``` * - * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively. + * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd` arguments can be used to limit the comparison to specific ranges within `target` and `buf` respectively. * * ```js * import { Buffer } from 'node:buffer'; @@ -787,7 +787,7 @@ declare module "buffer" { * // Prints: 1 * ``` * - * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`,`targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. + * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`, `targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. * @since v0.11.13 * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`. * @param [targetStart=0] The offset within `target` at which to begin comparison. @@ -1205,7 +1205,7 @@ declare module "buffer" { */ readBigInt64LE(offset?: number): bigint; /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned, little-endian integer supporting + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting * up to 48 bits of accuracy. * * This function is also available under the `readUintLE` alias. @@ -1229,7 +1229,7 @@ declare module "buffer" { */ readUintLE(offset: number, byteLength: number): number; /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting * up to 48 bits of accuracy. * * This function is also available under the `readUintBE` alias. @@ -1255,7 +1255,7 @@ declare module "buffer" { */ readUintBE(offset: number, byteLength: number): number; /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value * supporting up to 48 bits of accuracy. * * ```js @@ -1272,7 +1272,7 @@ declare module "buffer" { */ readIntLE(offset: number, byteLength: number): number; /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a big-endian, two's complement signed value + * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value * supporting up to 48 bits of accuracy. * * ```js @@ -2313,7 +2313,7 @@ declare module "buffer" { * **and should never be used in new code, because they use strings to represent** * **binary data and predate the introduction of typed arrays in JavaScript.** * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.** + * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** * @since v15.13.0, v14.17.0 * @legacy Use `Buffer.from(data, 'base64')` instead. * @param data The Base64-encoded input string. @@ -2329,7 +2329,7 @@ declare module "buffer" { * **and should never be used in new code, because they use strings to represent** * **binary data and predate the introduction of typed arrays in JavaScript.** * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.** + * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** * @since v15.13.0, v14.17.0 * @legacy Use `buf.toString('base64')` instead. * @param data An ASCII (Latin1) string. diff --git a/types/node/v18/child_process.d.ts b/types/node/v18/child_process.d.ts index 6c7a2c16335b75..7e58d0f5a28364 100644 --- a/types/node/v18/child_process.d.ts +++ b/types/node/v18/child_process.d.ts @@ -146,7 +146,7 @@ declare module "child_process" { /** * A sparse array of pipes to the child process, corresponding with positions in * the `stdio` option passed to {@link spawn} that have been set - * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin`,`subprocess.stdout`, and `subprocess.stderr`, + * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin`, `subprocess.stdout`, and `subprocess.stderr`, * respectively. * * In the following example, only the child's fd `1` (stdout) is configured as a diff --git a/types/node/v18/crypto.d.ts b/types/node/v18/crypto.d.ts index d19f881c0234cf..ef633d156de1da 100644 --- a/types/node/v18/crypto.d.ts +++ b/types/node/v18/crypto.d.ts @@ -689,7 +689,7 @@ declare module "crypto" { authTagLength: number; } /** - * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`. + * Creates and returns a `Cipher` object that uses the given `algorithm` and `password`. * * The `options` argument controls stream behavior and is optional except when a * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the @@ -974,7 +974,7 @@ declare module "crypto" { getAuthTag(): Buffer; } /** - * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key). + * Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key). * * The `options` argument controls stream behavior and is optional except when a * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the @@ -1001,7 +1001,7 @@ declare module "crypto" { /** @deprecated since v10.0.0 use `createDecipheriv()` */ function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; /** - * Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`). + * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`). * * The `options` argument controls stream behavior and is optional except when a * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the @@ -1501,7 +1501,7 @@ declare module "crypto" { * The `signature` argument is the previously calculated signature for the data, in * the `signatureEncoding`. * If a `signatureEncoding` is specified, the `signature` is expected to be a - * string; otherwise `signature` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`. * * The `verify` object can not be used again after `verify.verify()` has been * called. Multiple calls to `verify.verify()` will result in an error being @@ -1606,7 +1606,7 @@ declare module "crypto" { * key is interpreted using the specified `inputEncoding`, and secret is * encoded using specified `outputEncoding`. * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. * * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned. * @since v0.5.0 @@ -1725,7 +1725,7 @@ declare module "crypto" { type DiffieHellmanGroup = Omit; /** * Creates a predefined `DiffieHellmanGroup` key exchange object. The - * supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`,`'modp16'`, `'modp17'`, + * supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`, `'modp16'`, `'modp17'`, * `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The * returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing * the keys (with `diffieHellman.setPublicKey()`, for example). The @@ -1764,7 +1764,7 @@ declare module "crypto" { * implementation. A selected HMAC digest algorithm specified by `digest` is * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`. * - * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set; + * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set; * otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be * thrown if any of the input arguments specify invalid values or types. * @@ -2339,7 +2339,7 @@ declare module "crypto" { * * If `format` is not specified the point will be returned in `'uncompressed'`format. * - * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`. * * Example (uncompressing a key): * @@ -2438,7 +2438,7 @@ declare module "crypto" { /** * Sets the EC Diffie-Hellman private key. * If `encoding` is provided, `privateKey` is expected - * to be a string; otherwise `privateKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. * * If `privateKey` is not valid for the curve specified when the `ECDH` object was * created, an error is thrown. Upon setting the private key, the associated @@ -2871,7 +2871,7 @@ declare module "crypto" { * }); * ``` * - * On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair. + * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair. * * If this method is invoked as its `util.promisify()` ed version, it returns * a `Promise` for an `Object` with `publicKey` and `privateKey` properties. @@ -3431,9 +3431,9 @@ declare module "crypto" { */ function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined; /** - * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`,`salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. + * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. * - * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set; + * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set; * otherwise `err` will be `null`. The successfully generated `derivedKey` will * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any * of the input arguments specify invalid values or types. diff --git a/types/node/v18/dgram.d.ts b/types/node/v18/dgram.d.ts index 25a4f652d62f30..fa4d749a99c68f 100644 --- a/types/node/v18/dgram.d.ts +++ b/types/node/v18/dgram.d.ts @@ -93,7 +93,7 @@ declare module "dgram" { */ class Socket extends EventEmitter { /** - * Tells the kernel to join a multicast group at the given `multicastAddress` and`multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the`multicastInterface` argument is not + * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the`multicastInterface` argument is not * specified, the operating system will choose * one interface and will add membership to it. To add membership to every * available interface, call `addMembership` multiple times, once per interface. @@ -122,7 +122,7 @@ declare module "dgram" { addMembership(multicastAddress: string, multicastInterface?: string): void; /** * Returns an object containing the address information for a socket. - * For UDP sockets, this object will contain `address`, `family` and `port`properties. + * For UDP sockets, this object will contain `address`, `family` and `port` properties. * * This method throws `EBADF` if called on an unbound socket. * @since v0.1.99 @@ -276,7 +276,7 @@ declare module "dgram" { * * The `address` argument is a string. If the value of `address` is a host name, * DNS will be used to resolve the address of the host. If `address` is not - * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default. + * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default. * * If the socket has not been previously bound with a call to `bind`, the socket * is assigned a random port number and is bound to the "all interfaces" address diff --git a/types/node/v18/domain.d.ts b/types/node/v18/domain.d.ts index ca8728f19db4fe..1481fd70eb10c8 100644 --- a/types/node/v18/domain.d.ts +++ b/types/node/v18/domain.d.ts @@ -29,7 +29,7 @@ declare module "domain" { */ members: Array; /** - * The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and`process.domain` to the domain, and implicitly + * The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly * pushes the domain onto the domain * stack managed by the domain module (see {@link exit} for details on the * domain stack). The call to `enter()` delimits the beginning of a chain of diff --git a/types/node/v18/events.d.ts b/types/node/v18/events.d.ts index b1f6ebafd81fd8..727b8df709c016 100644 --- a/types/node/v18/events.d.ts +++ b/types/node/v18/events.d.ts @@ -492,7 +492,7 @@ declare module "events" { /** * Adds the `listener` function to the end of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has - * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple + * already been added. Multiple calls passing the same combination of `eventName` and `listener` will result in the `listener` being added, and called, multiple * times. * * ```js @@ -758,7 +758,7 @@ declare module "events" { /** * Adds the `listener` function to the _beginning_ of the listeners array for the * event named `eventName`. No checks are made to see if the `listener` has - * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple + * already been added. Multiple calls passing the same combination of `eventName` and `listener` will result in the `listener` being added, and called, multiple * times. * * ```js diff --git a/types/node/v18/fs.d.ts b/types/node/v18/fs.d.ts index d04beb659ded5c..6eab9b68bbde2a 100644 --- a/types/node/v18/fs.d.ts +++ b/types/node/v18/fs.d.ts @@ -282,7 +282,7 @@ declare module "fs" { /** * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. * - * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read. + * A promise is returned that will be resolved with an `fs.Dirent`, or `null` if there are no more directory entries to read. * * Directory entries returned by this function are in no particular order as * provided by the operating system's underlying directory mechanisms. @@ -3136,7 +3136,7 @@ declare module "fs" { * again, with the latest stat objects. This is a change in functionality since * v0.10. * - * Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible. + * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. * * When a file being watched by `fs.watchFile()` disappears and reappears, * then the contents of `previous` in the second callback event (the file's @@ -3187,7 +3187,7 @@ declare module "fs" { * again, with the latest stat objects. This is a change in functionality since * v0.10. * - * Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible. + * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. * * When a file being watched by `fs.watchFile()` disappears and reappears, * then the contents of `previous` in the second callback event (the file's @@ -3232,7 +3232,7 @@ declare module "fs" { * Calling `fs.unwatchFile()` with a filename that is not being watched is a * no-op, not an error. * - * Using {@link watch} is more efficient than `fs.watchFile()` and`fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()`and `fs.unwatchFile()` when possible. + * Using {@link watch} is more efficient than `fs.watchFile()` and `fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()` and `fs.unwatchFile()` when possible. * @since v0.1.31 * @param listener Optional, a listener previously attached using `fs.watchFile()` */ @@ -3580,7 +3580,7 @@ declare module "fs" { /** * Tests a user's permissions for the file or directory specified by `path`. * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`,`fs.constants.W_OK`, and `fs.constants.X_OK` + * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for * possible values of `mode`. * @@ -3875,7 +3875,7 @@ declare module "fs" { * replacing it may require the `flags` option to be set to `r+` rather than the * default `w`. The `encoding` can be any one of those accepted by `Buffer`. * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false, + * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, * then the file descriptor won't be closed, even if there's an error. * It is the application's responsibility to close it and make sure there's no * file descriptor leak. @@ -3886,7 +3886,7 @@ declare module "fs" { * By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev` and `close`. Overriding `write()`without `writev()` can reduce * performance as some optimizations (`_writev()`) * will be disabled. When providing the `fs` option, overrides for at least one of`write` and `writev` are required. If no `fd` option is supplied, an override - * for `open` is also required. If `autoClose` is `true`, an override for `close`is also required. + * for `open` is also required. If `autoClose` is `true`, an override for `close` is also required. * * Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the`path` argument and will use the specified file descriptor. This means that no`'open'` event will be * emitted. `fd` should be blocking; non-blocking `fd`s diff --git a/types/node/v18/fs/promises.d.ts b/types/node/v18/fs/promises.d.ts index 7e55f894f03bd5..6866f420699e5c 100644 --- a/types/node/v18/fs/promises.d.ts +++ b/types/node/v18/fs/promises.d.ts @@ -480,7 +480,7 @@ declare module "fs/promises" { /** * Tests a user's permissions for the file or directory specified by `path`. * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`,`fs.constants.W_OK`, and `fs.constants.X_OK` + * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for * possible values of `mode`. * @@ -731,7 +731,7 @@ declare module "fs/promises" { /** * Creates a symbolic link. * - * The `type` argument is only used on Windows platforms and can be one of `'dir'`,`'file'`, or `'junction'`. Windows junction points require the destination path + * The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. Windows junction points require the destination path * to be absolute. When using `'junction'`, the `target` argument will * automatically be normalized to absolute path. * @since v10.0.0 diff --git a/types/node/v18/http.d.ts b/types/node/v18/http.d.ts index cc49f23274a62d..c9461e2dc6a38f 100644 --- a/types/node/v18/http.d.ts +++ b/types/node/v18/http.d.ts @@ -861,7 +861,7 @@ declare module "http" { /** * This object is created internally and returned from {@link request}. It * represents an _in-progress_ request whose header has already been queued. The - * header is still mutable using the `setHeader(name, value)`,`getHeader(name)`, `removeHeader(name)` API. The actual header will + * header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will * be sent along with the first data chunk or when calling `request.end()`. * * To get the response, add a listener for `'response'` to the request object.`'response'` will be emitted from the request object when the response @@ -1207,8 +1207,8 @@ declare module "http" { * Duplicates in raw headers are handled in the following ways, depending on the * header name: * - * * Duplicates of `age`, `authorization`, `content-length`, `content-type`,`etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`,`last-modified`, `location`, - * `max-forwards`, `proxy-authorization`, `referer`,`retry-after`, `server`, or `user-agent` are discarded. + * * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`, + * `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded. * * `set-cookie` is always an array. Duplicates are added to the array. * * For duplicate `cookie` headers, the values are joined together with '; '. * * For all other headers, the values are joined together with ', '. @@ -1300,7 +1300,7 @@ declare module "http" { * new URL(request.url, `http://${request.getHeaders().host}`); * ``` * - * When `request.url` is `'/status?name=ryan'` and`request.getHeaders().host` is `'localhost:3000'`: + * When `request.url` is `'/status?name=ryan'` and `request.getHeaders().host` is `'localhost:3000'`: * * ```console * $ node @@ -1413,7 +1413,7 @@ declare module "http" { * }); * ``` * - * An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()`functions, a one-time use `Agent` with default options + * An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options * will be used * for the client connection. * diff --git a/types/node/v18/http2.d.ts b/types/node/v18/http2.d.ts index 05cd9fd9921691..d70ce90a62fb7c 100644 --- a/types/node/v18/http2.d.ts +++ b/types/node/v18/http2.d.ts @@ -764,7 +764,7 @@ declare module "http2" { * * The maximum number of outstanding (unacknowledged) pings is determined by the`maxOutstandingPings` configuration option. The default maximum is 10. * - * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView`containing 8 bytes of data that will be transmitted with the `PING` and + * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView` containing 8 bytes of data that will be transmitted with the `PING` and * returned with the ping acknowledgment. * * The callback will be invoked with three arguments: an error argument that will @@ -1902,7 +1902,7 @@ declare module "http2" { write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean; /** * Sends a status `100 Continue` to the client, indicating that the request body - * should be sent. See the `'checkContinue'` event on `Http2Server` and`Http2SecureServer`. + * should be sent. See the `'checkContinue'` event on `Http2Server` and `Http2SecureServer`. * @since v8.4.0 */ writeContinue(): void; diff --git a/types/node/v18/https.d.ts b/types/node/v18/https.d.ts index 2f069282a05890..bf14f2c26ca2da 100644 --- a/types/node/v18/https.d.ts +++ b/types/node/v18/https.d.ts @@ -318,8 +318,8 @@ declare module "https" { /** * Makes a request to a secure web server. * - * The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`,`honorCipherOrder`, `key`, `passphrase`, - * `pfx`, `rejectUnauthorized`,`secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`,`highWaterMark`. + * The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`, + * `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`. * * `options` can be an object, a string, or a `URL` object. If `options` is a * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. diff --git a/types/node/v18/net.d.ts b/types/node/v18/net.d.ts index c959b8924632fa..ca946d64ceb6dd 100644 --- a/types/node/v18/net.d.ts +++ b/types/node/v18/net.d.ts @@ -272,7 +272,7 @@ declare module "net" { */ readonly bytesWritten: number; /** - * If `true`,`socket.connect(options[, connectListener])` was + * If `true`, `socket.connect(options[, connectListener])` was * called and has not yet finished. It will stay `true` until the socket becomes * connected, then it is set to `false` and the `'connect'` event is emitted. Note * that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event. @@ -509,7 +509,7 @@ declare module "net" { * * All `listen()` methods can take a `backlog` parameter to specify the maximum * length of the queue of pending connections. The actual length will be determined - * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn`on Linux. The default value of this parameter is 511 (not 512). + * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512). * * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for * details). diff --git a/types/node/v18/os.d.ts b/types/node/v18/os.d.ts index 00d0373233dea9..907e313be663d5 100644 --- a/types/node/v18/os.d.ts +++ b/types/node/v18/os.d.ts @@ -224,7 +224,7 @@ declare module "os" { /** * Returns information about the currently effective user. On POSIX platforms, * this is typically a subset of the password file. The returned object includes - * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and`gid` fields are `-1`, and `shell` is `null`. + * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`. * * The value of `homedir` returned by `os.userInfo()` is provided by the operating * system. This differs from the result of `os.homedir()`, which queries @@ -395,7 +395,7 @@ declare module "os" { const EOL: string; /** * Returns the operating system CPU architecture for which the Node.js binary was - * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`. + * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`. * * The return value is equivalent to `process.arch`. * @since v0.5.0 @@ -412,7 +412,7 @@ declare module "os" { /** * Returns a string identifying the operating system platform for which * the Node.js binary was compiled. The value is set at compile time. - * Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`,`'openbsd'`, `'sunos'`, and `'win32'`. + * Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. * * The return value is equivalent to `process.platform`. * @@ -454,7 +454,7 @@ declare module "os" { /** * Attempts to set the scheduling priority for the process specified by `pid`. If`pid` is not provided or is `0`, the process ID of the current process is used. * - * The `priority` input must be an integer between `-20` (high priority) and `19`(low priority). Due to differences between Unix priority levels and Windows + * The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows * priority classes, `priority` is mapped to one of six priority constants in`os.constants.priority`. When retrieving a process priority level, this range * mapping may cause the return value to be slightly different on Windows. To avoid * confusion, set `priority` to one of the priority constants. diff --git a/types/node/v18/perf_hooks.d.ts b/types/node/v18/perf_hooks.d.ts index 9ad41b90a8fd76..5f471eab53d0d2 100644 --- a/types/node/v18/perf_hooks.d.ts +++ b/types/node/v18/perf_hooks.d.ts @@ -424,7 +424,7 @@ declare module "perf_hooks" { */ disconnect(): void; /** - * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes`or `options.type`: + * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`: * * ```js * const { diff --git a/types/node/v18/process.d.ts b/types/node/v18/process.d.ts index c5d6f8711ad642..fa3870dd259609 100644 --- a/types/node/v18/process.d.ts +++ b/types/node/v18/process.d.ts @@ -594,7 +594,7 @@ declare module "process" { * * Calling `process.exit()` will force the process to exit as quickly as possible * even if there are still asynchronous operations pending that have not yet - * completed fully, including I/O operations to `process.stdout` and`process.stderr`. + * completed fully, including I/O operations to `process.stdout` and `process.stderr`. * * In most situations, it is not actually necessary to call `process.exit()`explicitly. The Node.js process will exit on its own _if there is no additional_ * _work pending_ in the event loop. The `process.exitCode` property can be set to @@ -1079,7 +1079,7 @@ declare module "process" { title: string; /** * The operating system CPU architecture for which the Node.js binary was compiled. - * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`. + * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`. * * ```js * import { arch } from 'process'; diff --git a/types/node/v18/repl.d.ts b/types/node/v18/repl.d.ts index 7ed370b63377fe..0fd1b1225d90a9 100644 --- a/types/node/v18/repl.d.ts +++ b/types/node/v18/repl.d.ts @@ -289,7 +289,7 @@ declare module "repl" { defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; /** * The `replServer.displayPrompt()` method readies the REPL instance for input - * from the user, printing the configured `prompt` to a new line in the `output`and resuming the `input` to accept new input. + * from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input. * * When multi-line input is being entered, an ellipsis is printed rather than the * 'prompt'. diff --git a/types/node/v18/stream.d.ts b/types/node/v18/stream.d.ts index f7d2afb53c0052..c0a3072fec2e3a 100644 --- a/types/node/v18/stream.d.ts +++ b/types/node/v18/stream.d.ts @@ -1340,7 +1340,7 @@ declare module "stream" { * ``` * * Especially useful in error handling scenarios where a stream is destroyed - * prematurely (like an aborted HTTP request), and will not emit `'end'`or `'finish'`. + * prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`. * * The `finished` API provides promise version: * diff --git a/types/node/v18/test.d.ts b/types/node/v18/test.d.ts index c146f89ebbc7f0..df5358be91608c 100644 --- a/types/node/v18/test.d.ts +++ b/types/node/v18/test.d.ts @@ -778,12 +778,12 @@ declare module "node:test" { * ``` * * The above example enables mocking for the `setInterval` timer and - * implicitly mocks the `clearInterval` function. Only the `setInterval`and `clearInterval` functions from `node:timers`,`node:timers/promises`, and`globalThis` will be mocked. + * implicitly mocks the `clearInterval` function. Only the `setInterval` and `clearInterval` functions from `node:timers`, `node:timers/promises`, and`globalThis` will be mocked. * * Alternatively, if you call `mock.timers.enable()` without any parameters: * * All timers (`'setInterval'`, `'clearInterval'`, `'setTimeout'`, and `'clearTimeout'`) - * will be mocked. The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout`functions from `node:timers`, `node:timers/promises`, + * will be mocked. The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`, * and `globalThis` will be mocked. * @since v18.19.0 */ diff --git a/types/node/v18/tls.d.ts b/types/node/v18/tls.d.ts index f6b872ce2afda6..750f1affa68f2d 100644 --- a/types/node/v18/tls.d.ts +++ b/types/node/v18/tls.d.ts @@ -1092,7 +1092,7 @@ declare module "tls" { * stream and the cleartext one is used as a replacement for the initial encrypted * stream. * - * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and`encrypted` stream properties. + * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties. * * Using `cleartext` has the same API as {@link TLSSocket}. * diff --git a/types/node/v18/trace_events.d.ts b/types/node/v18/trace_events.d.ts index 7f0fe55a861d9b..8db1086d8f50ba 100644 --- a/types/node/v18/trace_events.d.ts +++ b/types/node/v18/trace_events.d.ts @@ -12,7 +12,7 @@ * * `node.async_hooks`: Enables capture of detailed `async_hooks` trace data. * The `async_hooks` events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property. * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones. - * * `node.console`: Enables capture of `console.time()` and `console.count()`output. + * * `node.console`: Enables capture of `console.time()` and `console.count()` output. * * `node.dns.native`: Enables capture of trace data for DNS queries. * * `node.environment`: Enables capture of Node.js Environment milestones. * * `node.fs.sync`: Enables capture of trace data for file system sync methods. diff --git a/types/node/v18/tty.d.ts b/types/node/v18/tty.d.ts index c0304153c5d0f1..eeaee6f40c9c98 100644 --- a/types/node/v18/tty.d.ts +++ b/types/node/v18/tty.d.ts @@ -21,7 +21,7 @@ * ``` * * In most cases, there should be little to no reason for an application to - * manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes. + * manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes. * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/tty.js) */ declare module "tty" { @@ -147,7 +147,7 @@ declare module "tty" { * * 256 colors: `FORCE_COLOR = 2` * * 16,777,216 colors: `FORCE_COLOR = 3` * - * Disabling color support is also possible by using the `NO_COLOR` and`NODE_DISABLE_COLORS` environment variables. + * Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables. * @since v9.9.0 * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. */ diff --git a/types/node/v18/util.d.ts b/types/node/v18/util.d.ts index 6adf5db11bd131..17154c2c0515ff 100644 --- a/types/node/v18/util.d.ts +++ b/types/node/v18/util.d.ts @@ -513,7 +513,7 @@ declare module "util" { */ export function isError(object: unknown): object is Error; /** - * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and`extends` keywords to get language level inheritance support. Also note + * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note * that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179). * * Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The @@ -885,7 +885,7 @@ declare module "util" { * If the `--throw-deprecation` command-line flag is set, or the`process.throwDeprecation` property is set to `true`, then an exception will be * thrown when the deprecated function is called. * - * The `--throw-deprecation` command-line flag and `process.throwDeprecation`property take precedence over `--trace-deprecation` and`process.traceDeprecation`. + * The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`. * @since v0.8.0 * @param fn The function that is being deprecated. * @param msg A warning message to display when the deprecated function is invoked.