@types/node 16.18.97 → 16.18.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- node v16.18/README.md +1 -1
- node v16.18/assert.d.ts +1 -1
- node v16.18/buffer.d.ts +9 -9
- node v16.18/child_process.d.ts +1 -1
- node v16.18/crypto.d.ts +12 -12
- node v16.18/dgram.d.ts +3 -3
- node v16.18/domain.d.ts +1 -1
- node v16.18/events.d.ts +2 -2
- node v16.18/fs/promises.d.ts +2 -2
- node v16.18/fs.d.ts +5 -5
- node v16.18/http.d.ts +5 -5
- node v16.18/http2.d.ts +2 -2
- node v16.18/https.d.ts +2 -2
- node v16.18/net.d.ts +2 -2
- node v16.18/os.d.ts +4 -4
- node v16.18/package.json +2 -2
- node v16.18/perf_hooks.d.ts +1 -1
- node v16.18/process.d.ts +2 -2
- node v16.18/repl.d.ts +1 -1
- node v16.18/stream.d.ts +1 -1
- node v16.18/tls.d.ts +1 -1
- node v16.18/trace_events.d.ts +1 -1
- node v16.18/tty.d.ts +2 -2
- node v16.18/util.d.ts +2 -2
node v16.18/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Mon,
|
|
11
|
+
* Last updated: Mon, 03 Jun 2024 23:35:49 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v16.18/assert.d.ts
CHANGED
|
@@ -796,7 +796,7 @@ declare module "assert" {
|
|
|
796
796
|
* If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
|
|
797
797
|
* [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
|
|
798
798
|
* an object where each property will be tested for, or an instance of error where
|
|
799
|
-
* each property will be tested for including the non-enumerable `message` and`name` properties.
|
|
799
|
+
* each property will be tested for including the non-enumerable `message` and `name` properties.
|
|
800
800
|
*
|
|
801
801
|
* If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject.
|
|
802
802
|
*
|
node v16.18/buffer.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ declare module "buffer" {
|
|
|
61
61
|
* Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if
|
|
62
62
|
* conversion from `fromEnc` to `toEnc` is not permitted.
|
|
63
63
|
*
|
|
64
|
-
* Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'
|
|
64
|
+
* Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, `'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`.
|
|
65
65
|
*
|
|
66
66
|
* The transcoding process will use substitution characters if a given byte
|
|
67
67
|
* sequence cannot be adequately represented in the target encoding. For instance:
|
|
@@ -701,7 +701,7 @@ declare module "buffer" {
|
|
|
701
701
|
* // (This result is equal to: [buf1, buf3, buf2].)
|
|
702
702
|
* ```
|
|
703
703
|
*
|
|
704
|
-
* The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively.
|
|
704
|
+
* The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd` arguments can be used to limit the comparison to specific ranges within `target` and `buf` respectively.
|
|
705
705
|
*
|
|
706
706
|
* ```js
|
|
707
707
|
* import { Buffer } from 'node:buffer';
|
|
@@ -717,7 +717,7 @@ declare module "buffer" {
|
|
|
717
717
|
* // Prints: 1
|
|
718
718
|
* ```
|
|
719
719
|
*
|
|
720
|
-
* `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0
|
|
720
|
+
* `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`, `targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`.
|
|
721
721
|
* @since v0.11.13
|
|
722
722
|
* @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`.
|
|
723
723
|
* @param [targetStart=0] The offset within `target` at which to begin comparison.
|
|
@@ -1135,7 +1135,7 @@ declare module "buffer" {
|
|
|
1135
1135
|
*/
|
|
1136
1136
|
readBigInt64LE(offset?: number): bigint;
|
|
1137
1137
|
/**
|
|
1138
|
-
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned, little-endian integer supporting
|
|
1138
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting
|
|
1139
1139
|
* up to 48 bits of accuracy.
|
|
1140
1140
|
*
|
|
1141
1141
|
* This function is also available under the `readUintLE` alias.
|
|
@@ -1159,7 +1159,7 @@ declare module "buffer" {
|
|
|
1159
1159
|
*/
|
|
1160
1160
|
readUintLE(offset: number, byteLength: number): number;
|
|
1161
1161
|
/**
|
|
1162
|
-
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting
|
|
1162
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting
|
|
1163
1163
|
* up to 48 bits of accuracy.
|
|
1164
1164
|
*
|
|
1165
1165
|
* This function is also available under the `readUintBE` alias.
|
|
@@ -1185,7 +1185,7 @@ declare module "buffer" {
|
|
|
1185
1185
|
*/
|
|
1186
1186
|
readUintBE(offset: number, byteLength: number): number;
|
|
1187
1187
|
/**
|
|
1188
|
-
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value
|
|
1188
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value
|
|
1189
1189
|
* supporting up to 48 bits of accuracy.
|
|
1190
1190
|
*
|
|
1191
1191
|
* ```js
|
|
@@ -1202,7 +1202,7 @@ declare module "buffer" {
|
|
|
1202
1202
|
*/
|
|
1203
1203
|
readIntLE(offset: number, byteLength: number): number;
|
|
1204
1204
|
/**
|
|
1205
|
-
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a big-endian, two's complement signed value
|
|
1205
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value
|
|
1206
1206
|
* supporting up to 48 bits of accuracy.
|
|
1207
1207
|
*
|
|
1208
1208
|
* ```js
|
|
@@ -2237,7 +2237,7 @@ declare module "buffer" {
|
|
|
2237
2237
|
* **and should never be used in new code, because they use strings to represent**
|
|
2238
2238
|
* **binary data and predate the introduction of typed arrays in JavaScript.**
|
|
2239
2239
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2240
|
-
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2240
|
+
* **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.**
|
|
2241
2241
|
* @since v15.13.0, v14.17.0
|
|
2242
2242
|
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2243
2243
|
* @param data The Base64-encoded input string.
|
|
@@ -2253,7 +2253,7 @@ declare module "buffer" {
|
|
|
2253
2253
|
* **and should never be used in new code, because they use strings to represent**
|
|
2254
2254
|
* **binary data and predate the introduction of typed arrays in JavaScript.**
|
|
2255
2255
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2256
|
-
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2256
|
+
* **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.**
|
|
2257
2257
|
* @since v15.13.0, v14.17.0
|
|
2258
2258
|
* @legacy Use `buf.toString('base64')` instead.
|
|
2259
2259
|
* @param data An ASCII (Latin1) string.
|
node v16.18/child_process.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ declare module "child_process" {
|
|
|
143
143
|
/**
|
|
144
144
|
* A sparse array of pipes to the child process, corresponding with positions in
|
|
145
145
|
* the `stdio` option passed to {@link spawn} that have been set
|
|
146
|
-
* to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin
|
|
146
|
+
* 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`,
|
|
147
147
|
* respectively.
|
|
148
148
|
*
|
|
149
149
|
* In the following example, only the child's fd `1` (stdout) is configured as a
|
node v16.18/crypto.d.ts
CHANGED
|
@@ -662,7 +662,7 @@ declare module "crypto" {
|
|
|
662
662
|
authTagLength: number;
|
|
663
663
|
}
|
|
664
664
|
/**
|
|
665
|
-
* Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
|
|
665
|
+
* Creates and returns a `Cipher` object that uses the given `algorithm` and `password`.
|
|
666
666
|
*
|
|
667
667
|
* The `options` argument controls stream behavior and is optional except when a
|
|
668
668
|
* 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" {
|
|
|
945
945
|
getAuthTag(): Buffer;
|
|
946
946
|
}
|
|
947
947
|
/**
|
|
948
|
-
* Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
|
|
948
|
+
* Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key).
|
|
949
949
|
*
|
|
950
950
|
* The `options` argument controls stream behavior and is optional except when a
|
|
951
951
|
* 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" {
|
|
|
971
971
|
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
972
972
|
function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
|
|
973
973
|
/**
|
|
974
|
-
* Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`).
|
|
974
|
+
* Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`).
|
|
975
975
|
*
|
|
976
976
|
* The `options` argument controls stream behavior and is optional except when a
|
|
977
977
|
* 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" {
|
|
|
1470
1470
|
* The `signature` argument is the previously calculated signature for the data, in
|
|
1471
1471
|
* the `signatureEncoding`.
|
|
1472
1472
|
* If a `signatureEncoding` is specified, the `signature` is expected to be a
|
|
1473
|
-
* string; otherwise `signature` is expected to be a `Buffer
|
|
1473
|
+
* string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
1474
1474
|
*
|
|
1475
1475
|
* The `verify` object can not be used again after `verify.verify()` has been
|
|
1476
1476
|
* called. Multiple calls to `verify.verify()` will result in an error being
|
|
@@ -1568,7 +1568,7 @@ declare module "crypto" {
|
|
|
1568
1568
|
* key is interpreted using the specified `inputEncoding`, and secret is
|
|
1569
1569
|
* encoded using specified `outputEncoding`.
|
|
1570
1570
|
* If the `inputEncoding` is not
|
|
1571
|
-
* provided, `otherPublicKey` is expected to be a `Buffer
|
|
1571
|
+
* provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
1572
1572
|
*
|
|
1573
1573
|
* If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
|
|
1574
1574
|
* @since v0.5.0
|
|
@@ -1687,7 +1687,7 @@ declare module "crypto" {
|
|
|
1687
1687
|
type DiffieHellmanGroup = Omit<DiffieHellman, "setPublicKey" | "setPrivateKey">;
|
|
1688
1688
|
/**
|
|
1689
1689
|
* Creates a predefined `DiffieHellmanGroup` key exchange object. The
|
|
1690
|
-
* supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'
|
|
1690
|
+
* 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'`,
|
|
1691
1691
|
* `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The
|
|
1692
1692
|
* returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
|
|
1693
1693
|
* the keys (with `diffieHellman.setPublicKey()`, for example). The
|
|
@@ -1726,7 +1726,7 @@ declare module "crypto" {
|
|
|
1726
1726
|
* implementation. A selected HMAC digest algorithm specified by `digest` is
|
|
1727
1727
|
* applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
|
|
1728
1728
|
*
|
|
1729
|
-
* The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set;
|
|
1729
|
+
* The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set;
|
|
1730
1730
|
* otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be
|
|
1731
1731
|
* thrown if any of the input arguments specify invalid values or types.
|
|
1732
1732
|
*
|
|
@@ -2301,7 +2301,7 @@ declare module "crypto" {
|
|
|
2301
2301
|
*
|
|
2302
2302
|
* If `format` is not specified the point will be returned in `'uncompressed'`format.
|
|
2303
2303
|
*
|
|
2304
|
-
* If the `inputEncoding` is not provided, `key` is expected to be a `Buffer
|
|
2304
|
+
* If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
2305
2305
|
*
|
|
2306
2306
|
* Example (uncompressing a key):
|
|
2307
2307
|
*
|
|
@@ -2400,7 +2400,7 @@ declare module "crypto" {
|
|
|
2400
2400
|
/**
|
|
2401
2401
|
* Sets the EC Diffie-Hellman private key.
|
|
2402
2402
|
* If `encoding` is provided, `privateKey` is expected
|
|
2403
|
-
* to be a string; otherwise `privateKey` is expected to be a `Buffer
|
|
2403
|
+
* to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
2404
2404
|
*
|
|
2405
2405
|
* If `privateKey` is not valid for the curve specified when the `ECDH` object was
|
|
2406
2406
|
* created, an error is thrown. Upon setting the private key, the associated
|
|
@@ -2832,7 +2832,7 @@ declare module "crypto" {
|
|
|
2832
2832
|
* });
|
|
2833
2833
|
* ```
|
|
2834
2834
|
*
|
|
2835
|
-
* On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair.
|
|
2835
|
+
* On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair.
|
|
2836
2836
|
*
|
|
2837
2837
|
* If this method is invoked as its `util.promisify()` ed version, it returns
|
|
2838
2838
|
* a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
|
|
@@ -3392,9 +3392,9 @@ declare module "crypto" {
|
|
|
3392
3392
|
*/
|
|
3393
3393
|
function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
|
|
3394
3394
|
/**
|
|
3395
|
-
* HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm
|
|
3395
|
+
* 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.
|
|
3396
3396
|
*
|
|
3397
|
-
* The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
|
|
3397
|
+
* The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set;
|
|
3398
3398
|
* otherwise `err` will be `null`. The successfully generated `derivedKey` will
|
|
3399
3399
|
* 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
|
|
3400
3400
|
* of the input arguments specify invalid values or types.
|
node v16.18/dgram.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ declare module "dgram" {
|
|
|
93
93
|
*/
|
|
94
94
|
class Socket extends EventEmitter {
|
|
95
95
|
/**
|
|
96
|
-
* 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
|
|
96
|
+
* 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
|
|
97
97
|
* specified, the operating system will choose
|
|
98
98
|
* one interface and will add membership to it. To add membership to every
|
|
99
99
|
* available interface, call `addMembership` multiple times, once per interface.
|
|
@@ -122,7 +122,7 @@ declare module "dgram" {
|
|
|
122
122
|
addMembership(multicastAddress: string, multicastInterface?: string): void;
|
|
123
123
|
/**
|
|
124
124
|
* Returns an object containing the address information for a socket.
|
|
125
|
-
* For UDP sockets, this object will contain `address`, `family` and `port`properties.
|
|
125
|
+
* For UDP sockets, this object will contain `address`, `family` and `port` properties.
|
|
126
126
|
*
|
|
127
127
|
* This method throws `EBADF` if called on an unbound socket.
|
|
128
128
|
* @since v0.1.99
|
|
@@ -276,7 +276,7 @@ declare module "dgram" {
|
|
|
276
276
|
*
|
|
277
277
|
* The `address` argument is a string. If the value of `address` is a host name,
|
|
278
278
|
* DNS will be used to resolve the address of the host. If `address` is not
|
|
279
|
-
* provided or otherwise falsy, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default.
|
|
279
|
+
* provided or otherwise falsy, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default.
|
|
280
280
|
*
|
|
281
281
|
* If the socket has not been previously bound with a call to `bind`, the socket
|
|
282
282
|
* is assigned a random port number and is bound to the "all interfaces" address
|
node v16.18/domain.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare module "domain" {
|
|
|
29
29
|
*/
|
|
30
30
|
members: Array<EventEmitter | NodeJS.Timer>;
|
|
31
31
|
/**
|
|
32
|
-
* 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
|
|
32
|
+
* 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
|
|
33
33
|
* pushes the domain onto the domain
|
|
34
34
|
* stack managed by the domain module (see {@link exit} for details on the
|
|
35
35
|
* domain stack). The call to `enter()` delimits the beginning of a chain of
|
node v16.18/events.d.ts
CHANGED
|
@@ -391,7 +391,7 @@ declare module "events" {
|
|
|
391
391
|
/**
|
|
392
392
|
* Adds the `listener` function to the end of the listeners array for the
|
|
393
393
|
* event named `eventName`. No checks are made to see if the `listener` has
|
|
394
|
-
* already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple
|
|
394
|
+
* already been added. Multiple calls passing the same combination of `eventName` and `listener` will result in the `listener` being added, and called, multiple
|
|
395
395
|
* times.
|
|
396
396
|
*
|
|
397
397
|
* ```js
|
|
@@ -653,7 +653,7 @@ declare module "events" {
|
|
|
653
653
|
/**
|
|
654
654
|
* Adds the `listener` function to the _beginning_ of the listeners array for the
|
|
655
655
|
* event named `eventName`. No checks are made to see if the `listener` has
|
|
656
|
-
* already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple
|
|
656
|
+
* already been added. Multiple calls passing the same combination of `eventName` and `listener` will result in the `listener` being added, and called, multiple
|
|
657
657
|
* times.
|
|
658
658
|
*
|
|
659
659
|
* ```js
|
node v16.18/fs/promises.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ declare module "fs/promises" {
|
|
|
172
172
|
* it may require the `flags` `open` option to be set to `r+` rather than the
|
|
173
173
|
* default `r`. The `encoding` can be any one of those accepted by `Buffer`.
|
|
174
174
|
*
|
|
175
|
-
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
|
175
|
+
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false,
|
|
176
176
|
* then the file descriptor won't be closed, even if there's an error.
|
|
177
177
|
* It is the application's responsibility to close it and make sure there's no
|
|
178
178
|
* file descriptor leak.
|
|
@@ -670,7 +670,7 @@ declare module "fs/promises" {
|
|
|
670
670
|
/**
|
|
671
671
|
* Creates a symbolic link.
|
|
672
672
|
*
|
|
673
|
-
* The `type` argument is only used on Windows platforms and can be one of `'dir'
|
|
673
|
+
* 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
|
|
674
674
|
* to be absolute. When using `'junction'`, the `target` argument will
|
|
675
675
|
* automatically be normalized to absolute path.
|
|
676
676
|
* @since v10.0.0
|
node v16.18/fs.d.ts
CHANGED
|
@@ -235,7 +235,7 @@ declare module "fs" {
|
|
|
235
235
|
/**
|
|
236
236
|
* Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
|
|
237
237
|
*
|
|
238
|
-
* A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read.
|
|
238
|
+
* A promise is returned that will be resolved with an `fs.Dirent`, or `null` if there are no more directory entries to read.
|
|
239
239
|
*
|
|
240
240
|
* Directory entries returned by this function are in no particular order as
|
|
241
241
|
* provided by the operating system's underlying directory mechanisms.
|
|
@@ -2978,7 +2978,7 @@ declare module "fs" {
|
|
|
2978
2978
|
* again, with the latest stat objects. This is a change in functionality since
|
|
2979
2979
|
* v0.10.
|
|
2980
2980
|
*
|
|
2981
|
-
* 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.
|
|
2981
|
+
* 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.
|
|
2982
2982
|
*
|
|
2983
2983
|
* When a file being watched by `fs.watchFile()` disappears and reappears,
|
|
2984
2984
|
* then the contents of `previous` in the second callback event (the file's
|
|
@@ -3028,7 +3028,7 @@ declare module "fs" {
|
|
|
3028
3028
|
* Calling `fs.unwatchFile()` with a filename that is not being watched is a
|
|
3029
3029
|
* no-op, not an error.
|
|
3030
3030
|
*
|
|
3031
|
-
* 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.
|
|
3031
|
+
* 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.
|
|
3032
3032
|
* @since v0.1.31
|
|
3033
3033
|
* @param listener Optional, a listener previously attached using `fs.watchFile()`
|
|
3034
3034
|
*/
|
|
@@ -3677,7 +3677,7 @@ declare module "fs" {
|
|
|
3677
3677
|
* it may require the `flags` option to be set to `r+` rather than the default `w`.
|
|
3678
3678
|
* The `encoding` can be any one of those accepted by `Buffer`.
|
|
3679
3679
|
*
|
|
3680
|
-
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
|
3680
|
+
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false,
|
|
3681
3681
|
* then the file descriptor won't be closed, even if there's an error.
|
|
3682
3682
|
* It is the application's responsibility to close it and make sure there's no
|
|
3683
3683
|
* file descriptor leak.
|
|
@@ -3688,7 +3688,7 @@ declare module "fs" {
|
|
|
3688
3688
|
* 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
|
|
3689
3689
|
* performance as some optimizations (`_writev()`)
|
|
3690
3690
|
* 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
|
|
3691
|
-
* for `open` is also required. If `autoClose` is `true`, an override for `close`is also required.
|
|
3691
|
+
* for `open` is also required. If `autoClose` is `true`, an override for `close` is also required.
|
|
3692
3692
|
*
|
|
3693
3693
|
* 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
|
|
3694
3694
|
* emitted. `fd` should be blocking; non-blocking `fd`s
|
node v16.18/http.d.ts
CHANGED
|
@@ -731,7 +731,7 @@ declare module "http" {
|
|
|
731
731
|
/**
|
|
732
732
|
* This object is created internally and returned from {@link request}. It
|
|
733
733
|
* represents an _in-progress_ request whose header has already been queued. The
|
|
734
|
-
* header is still mutable using the `setHeader(name, value)
|
|
734
|
+
* header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will
|
|
735
735
|
* be sent along with the first data chunk or when calling `request.end()`.
|
|
736
736
|
*
|
|
737
737
|
* 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" {
|
|
|
1015
1015
|
* Duplicates in raw headers are handled in the following ways, depending on the
|
|
1016
1016
|
* header name:
|
|
1017
1017
|
*
|
|
1018
|
-
* * Duplicates of `age`, `authorization`, `content-length`, `content-type
|
|
1019
|
-
* `max-forwards`, `proxy-authorization`, `referer
|
|
1018
|
+
* * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,
|
|
1019
|
+
* `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded.
|
|
1020
1020
|
* * `set-cookie` is always an array. Duplicates are added to the array.
|
|
1021
1021
|
* * For duplicate `cookie` headers, the values are joined together with '; '.
|
|
1022
1022
|
* * For all other headers, the values are joined together with ', '.
|
|
@@ -1088,7 +1088,7 @@ declare module "http" {
|
|
|
1088
1088
|
* new URL(request.url, `http://${request.headers.host}`);
|
|
1089
1089
|
* ```
|
|
1090
1090
|
*
|
|
1091
|
-
* When `request.url` is `'/status?name=ryan'` and`request.headers.host` is `'localhost:3000'`:
|
|
1091
|
+
* When `request.url` is `'/status?name=ryan'` and `request.headers.host` is `'localhost:3000'`:
|
|
1092
1092
|
*
|
|
1093
1093
|
* ```console
|
|
1094
1094
|
* $ node
|
|
@@ -1201,7 +1201,7 @@ declare module "http" {
|
|
|
1201
1201
|
* });
|
|
1202
1202
|
* ```
|
|
1203
1203
|
*
|
|
1204
|
-
* 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
|
|
1204
|
+
* 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
|
|
1205
1205
|
* will be used
|
|
1206
1206
|
* for the client connection.
|
|
1207
1207
|
*
|
node v16.18/http2.d.ts
CHANGED
|
@@ -764,7 +764,7 @@ declare module "http2" {
|
|
|
764
764
|
*
|
|
765
765
|
* The maximum number of outstanding (unacknowledged) pings is determined by the`maxOutstandingPings` configuration option. The default maximum is 10.
|
|
766
766
|
*
|
|
767
|
-
* If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView`containing 8 bytes of data that will be transmitted with the `PING` and
|
|
767
|
+
* If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView` containing 8 bytes of data that will be transmitted with the `PING` and
|
|
768
768
|
* returned with the ping acknowledgment.
|
|
769
769
|
*
|
|
770
770
|
* The callback will be invoked with three arguments: an error argument that will
|
|
@@ -1897,7 +1897,7 @@ declare module "http2" {
|
|
|
1897
1897
|
write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean;
|
|
1898
1898
|
/**
|
|
1899
1899
|
* Sends a status `100 Continue` to the client, indicating that the request body
|
|
1900
|
-
* should be sent. See the `'checkContinue'` event on `Http2Server` and`Http2SecureServer`.
|
|
1900
|
+
* should be sent. See the `'checkContinue'` event on `Http2Server` and `Http2SecureServer`.
|
|
1901
1901
|
* @since v8.4.0
|
|
1902
1902
|
*/
|
|
1903
1903
|
writeContinue(): void;
|
node v16.18/https.d.ts
CHANGED
|
@@ -308,8 +308,8 @@ declare module "https" {
|
|
|
308
308
|
/**
|
|
309
309
|
* Makes a request to a secure web server.
|
|
310
310
|
*
|
|
311
|
-
* The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve
|
|
312
|
-
* `pfx`, `rejectUnauthorized
|
|
311
|
+
* The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`,
|
|
312
|
+
* `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`.
|
|
313
313
|
*
|
|
314
314
|
* `options` can be an object, a string, or a `URL` object. If `options` is a
|
|
315
315
|
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
node v16.18/net.d.ts
CHANGED
|
@@ -253,7 +253,7 @@ declare module "net" {
|
|
|
253
253
|
*/
|
|
254
254
|
readonly bytesWritten: number;
|
|
255
255
|
/**
|
|
256
|
-
* If `true
|
|
256
|
+
* If `true`, `socket.connect(options[, connectListener])` was
|
|
257
257
|
* called and has not yet finished. It will stay `true` until the socket becomes
|
|
258
258
|
* connected, then it is set to `false` and the `'connect'` event is emitted. Note
|
|
259
259
|
* that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event.
|
|
@@ -481,7 +481,7 @@ declare module "net" {
|
|
|
481
481
|
*
|
|
482
482
|
* All `listen()` methods can take a `backlog` parameter to specify the maximum
|
|
483
483
|
* length of the queue of pending connections. The actual length will be determined
|
|
484
|
-
* 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).
|
|
484
|
+
* 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).
|
|
485
485
|
*
|
|
486
486
|
* All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for
|
|
487
487
|
* details).
|
node v16.18/os.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ declare module "os" {
|
|
|
216
216
|
/**
|
|
217
217
|
* Returns information about the currently effective user. On POSIX platforms,
|
|
218
218
|
* this is typically a subset of the password file. The returned object includes
|
|
219
|
-
* the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and`gid` fields are `-1`, and `shell` is `null`.
|
|
219
|
+
* the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`.
|
|
220
220
|
*
|
|
221
221
|
* The value of `homedir` returned by `os.userInfo()` is provided by the operating
|
|
222
222
|
* system. This differs from the result of `os.homedir()`, which queries
|
|
@@ -387,7 +387,7 @@ declare module "os" {
|
|
|
387
387
|
const EOL: string;
|
|
388
388
|
/**
|
|
389
389
|
* Returns the operating system CPU architecture for which the Node.js binary was
|
|
390
|
-
* compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'
|
|
390
|
+
* compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
|
|
391
391
|
*
|
|
392
392
|
* The return value is equivalent to `process.arch`.
|
|
393
393
|
* @since v0.5.0
|
|
@@ -403,7 +403,7 @@ declare module "os" {
|
|
|
403
403
|
function version(): string;
|
|
404
404
|
/**
|
|
405
405
|
* Returns a string identifying the operating system platform. The value is set
|
|
406
|
-
* at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'
|
|
406
|
+
* at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
|
|
407
407
|
*
|
|
408
408
|
* The return value is equivalent to `process.platform`.
|
|
409
409
|
*
|
|
@@ -436,7 +436,7 @@ declare module "os" {
|
|
|
436
436
|
/**
|
|
437
437
|
* 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.
|
|
438
438
|
*
|
|
439
|
-
* The `priority` input must be an integer between `-20` (high priority) and `19`(low priority). Due to differences between Unix priority levels and Windows
|
|
439
|
+
* The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows
|
|
440
440
|
* priority classes, `priority` is mapped to one of six priority constants in`os.constants.priority`. When retrieving a process priority level, this range
|
|
441
441
|
* mapping may cause the return value to be slightly different on Windows. To avoid
|
|
442
442
|
* confusion, set `priority` to one of the priority constants.
|
node v16.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.98",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -210,6 +210,6 @@
|
|
|
210
210
|
},
|
|
211
211
|
"scripts": {},
|
|
212
212
|
"dependencies": {},
|
|
213
|
-
"typesPublisherContentHash": "
|
|
213
|
+
"typesPublisherContentHash": "886461790f980f059c21f2d5f9c273f884a8f66c5f028cd599f3276402c376e5",
|
|
214
214
|
"typeScriptVersion": "4.7"
|
|
215
215
|
}
|
node v16.18/perf_hooks.d.ts
CHANGED
|
@@ -407,7 +407,7 @@ declare module "perf_hooks" {
|
|
|
407
407
|
*/
|
|
408
408
|
disconnect(): void;
|
|
409
409
|
/**
|
|
410
|
-
* Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes`or `options.type`:
|
|
410
|
+
* Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`:
|
|
411
411
|
*
|
|
412
412
|
* ```js
|
|
413
413
|
* const {
|
node v16.18/process.d.ts
CHANGED
|
@@ -583,7 +583,7 @@ declare module "process" {
|
|
|
583
583
|
*
|
|
584
584
|
* Calling `process.exit()` will force the process to exit as quickly as possible
|
|
585
585
|
* even if there are still asynchronous operations pending that have not yet
|
|
586
|
-
* completed fully, including I/O operations to `process.stdout` and`process.stderr`.
|
|
586
|
+
* completed fully, including I/O operations to `process.stdout` and `process.stderr`.
|
|
587
587
|
*
|
|
588
588
|
* 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_
|
|
589
589
|
* _work pending_ in the event loop. The `process.exitCode` property can be set to
|
|
@@ -1062,7 +1062,7 @@ declare module "process" {
|
|
|
1062
1062
|
title: string;
|
|
1063
1063
|
/**
|
|
1064
1064
|
* The operating system CPU architecture for which the Node.js binary was compiled.
|
|
1065
|
-
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'
|
|
1065
|
+
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
|
|
1066
1066
|
*
|
|
1067
1067
|
* ```js
|
|
1068
1068
|
* import { arch } from 'process';
|
node v16.18/repl.d.ts
CHANGED
|
@@ -289,7 +289,7 @@ declare module "repl" {
|
|
|
289
289
|
defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void;
|
|
290
290
|
/**
|
|
291
291
|
* The `replServer.displayPrompt()` method readies the REPL instance for input
|
|
292
|
-
* from the user, printing the configured `prompt` to a new line in the `output`and resuming the `input` to accept new input.
|
|
292
|
+
* from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input.
|
|
293
293
|
*
|
|
294
294
|
* When multi-line input is being entered, an ellipsis is printed rather than the
|
|
295
295
|
* 'prompt'.
|
node v16.18/stream.d.ts
CHANGED
|
@@ -1127,7 +1127,7 @@ declare module "stream" {
|
|
|
1127
1127
|
* ```
|
|
1128
1128
|
*
|
|
1129
1129
|
* Especially useful in error handling scenarios where a stream is destroyed
|
|
1130
|
-
* prematurely (like an aborted HTTP request), and will not emit `'end'`or `'finish'`.
|
|
1130
|
+
* prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`.
|
|
1131
1131
|
*
|
|
1132
1132
|
* The `finished` API provides promise version:
|
|
1133
1133
|
*
|
node v16.18/tls.d.ts
CHANGED
|
@@ -997,7 +997,7 @@ declare module "tls" {
|
|
|
997
997
|
* stream and the cleartext one is used as a replacement for the initial encrypted
|
|
998
998
|
* stream.
|
|
999
999
|
*
|
|
1000
|
-
* `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and`encrypted` stream properties.
|
|
1000
|
+
* `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties.
|
|
1001
1001
|
*
|
|
1002
1002
|
* Using `cleartext` has the same API as {@link TLSSocket}.
|
|
1003
1003
|
*
|
node v16.18/trace_events.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* * `node.async_hooks`: Enables capture of detailed `async_hooks` trace data.
|
|
13
13
|
* The `async_hooks` events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property.
|
|
14
14
|
* * `node.bootstrap`: Enables capture of Node.js bootstrap milestones.
|
|
15
|
-
* * `node.console`: Enables capture of `console.time()` and `console.count()`output.
|
|
15
|
+
* * `node.console`: Enables capture of `console.time()` and `console.count()` output.
|
|
16
16
|
* * `node.dns.native`: Enables capture of trace data for DNS queries.
|
|
17
17
|
* * `node.environment`: Enables capture of Node.js Environment milestones.
|
|
18
18
|
* * `node.fs.sync`: Enables capture of trace data for file system sync methods.
|
node v16.18/tty.d.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* In most cases, there should be little to no reason for an application to
|
|
24
|
-
* manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
|
|
24
|
+
* manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes.
|
|
25
25
|
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/tty.js)
|
|
26
26
|
*/
|
|
27
27
|
declare module "tty" {
|
|
@@ -145,7 +145,7 @@ declare module "tty" {
|
|
|
145
145
|
* * 256 colors: `FORCE_COLOR = 2`
|
|
146
146
|
* * 16,777,216 colors: `FORCE_COLOR = 3`
|
|
147
147
|
*
|
|
148
|
-
* Disabling color support is also possible by using the `NO_COLOR` and`NODE_DISABLE_COLORS` environment variables.
|
|
148
|
+
* Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables.
|
|
149
149
|
* @since v9.9.0
|
|
150
150
|
* @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
|
|
151
151
|
*/
|
node v16.18/util.d.ts
CHANGED
|
@@ -429,7 +429,7 @@ declare module "util" {
|
|
|
429
429
|
*/
|
|
430
430
|
export function isError(object: unknown): object is Error;
|
|
431
431
|
/**
|
|
432
|
-
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and`extends` keywords to get language level inheritance support. Also note
|
|
432
|
+
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note
|
|
433
433
|
* that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179).
|
|
434
434
|
*
|
|
435
435
|
* 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" {
|
|
|
801
801
|
* If the `--throw-deprecation` command-line flag is set, or the`process.throwDeprecation` property is set to `true`, then an exception will be
|
|
802
802
|
* thrown when the deprecated function is called.
|
|
803
803
|
*
|
|
804
|
-
* The `--throw-deprecation` command-line flag and `process.throwDeprecation`property take precedence over `--trace-deprecation` and`process.traceDeprecation`.
|
|
804
|
+
* The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`.
|
|
805
805
|
* @since v0.8.0
|
|
806
806
|
* @param fn The function that is being deprecated.
|
|
807
807
|
* @param msg A warning message to display when the deprecated function is invoked.
|