@types/node 16.4.12 → 16.6.1

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/process.d.ts CHANGED
@@ -244,7 +244,9 @@ declare module 'process' {
244
244
  * For example, to copy `process.stdin` to `process.stdout`:
245
245
  *
246
246
  * ```js
247
- * process.stdin.pipe(process.stdout);
247
+ * import { stdin, stdout } from 'process';
248
+ *
249
+ * stdin.pipe(stdout);
248
250
  * ```
249
251
  *
250
252
  * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
@@ -289,8 +291,10 @@ declare module 'process' {
289
291
  * For example, assuming the following script for `process-args.js`:
290
292
  *
291
293
  * ```js
294
+ * import { argv } from 'process';
295
+ *
292
296
  * // print process.argv
293
- * process.argv.forEach((val, index) => {
297
+ * argv.forEach((val, index) => {
294
298
  * console.log(`${index}: ${val}`);
295
299
  * });
296
300
  * ```
@@ -379,10 +383,12 @@ declare module 'process' {
379
383
  * the specified `directory` does not exist).
380
384
  *
381
385
  * ```js
382
- * console.log(`Starting directory: ${process.cwd()}`);
386
+ * import { chdir, cwd } from 'process';
387
+ *
388
+ * console.log(`Starting directory: ${cwd()}`);
383
389
  * try {
384
- * process.chdir('/tmp');
385
- * console.log(`New directory: ${process.cwd()}`);
390
+ * chdir('/tmp');
391
+ * console.log(`New directory: ${cwd()}`);
386
392
  * } catch (err) {
387
393
  * console.error(`chdir: ${err}`);
388
394
  * }
@@ -397,7 +403,9 @@ declare module 'process' {
397
403
  * process.
398
404
  *
399
405
  * ```js
400
- * console.log(`Current directory: ${process.cwd()}`);
406
+ * import { cwd } from 'process';
407
+ *
408
+ * console.log(`Current directory: ${cwd()}`);
401
409
  * ```
402
410
  * @since v0.1.8
403
411
  */
@@ -406,6 +414,8 @@ declare module 'process' {
406
414
  * The port used by the Node.js debugger when enabled.
407
415
  *
408
416
  * ```js
417
+ * import process from 'process';
418
+ *
409
419
  * process.debugPort = 5858;
410
420
  * ```
411
421
  * @since v0.7.2
@@ -416,8 +426,10 @@ declare module 'process' {
416
426
  * specific process warnings. These can be listened for by adding a handler to the `'warning'` event.
417
427
  *
418
428
  * ```js
429
+ * import { emitWarning } from 'process';
430
+ *
419
431
  * // Emit a warning with a code and additional detail.
420
- * process.emitWarning('Something happened!', {
432
+ * emitWarning('Something happened!', {
421
433
  * code: 'MY_WARNING',
422
434
  * detail: 'This is some additional information'
423
435
  * });
@@ -429,6 +441,8 @@ declare module 'process' {
429
441
  * In this example, an `Error` object is generated internally by`process.emitWarning()` and passed through to the `'warning'` handler.
430
442
  *
431
443
  * ```js
444
+ * import process from 'process';
445
+ *
432
446
  * process.on('warning', (warning) => {
433
447
  * console.warn(warning.name); // 'Warning'
434
448
  * console.warn(warning.message); // 'Something happened!'
@@ -479,8 +493,10 @@ declare module 'process' {
479
493
  * While the following will:
480
494
  *
481
495
  * ```js
482
- * process.env.foo = 'bar';
483
- * console.log(process.env.foo);
496
+ * import { env } from 'process';
497
+ *
498
+ * env.foo = 'bar';
499
+ * console.log(env.foo);
484
500
  * ```
485
501
  *
486
502
  * Assigning a property on `process.env` will implicitly convert the value
@@ -488,28 +504,34 @@ declare module 'process' {
488
504
  * throw an error when the value is not a string, number, or boolean.
489
505
  *
490
506
  * ```js
491
- * process.env.test = null;
492
- * console.log(process.env.test);
507
+ * import { env } from 'process';
508
+ *
509
+ * env.test = null;
510
+ * console.log(env.test);
493
511
  * // => 'null'
494
- * process.env.test = undefined;
495
- * console.log(process.env.test);
512
+ * env.test = undefined;
513
+ * console.log(env.test);
496
514
  * // => 'undefined'
497
515
  * ```
498
516
  *
499
517
  * Use `delete` to delete a property from `process.env`.
500
518
  *
501
519
  * ```js
502
- * process.env.TEST = 1;
503
- * delete process.env.TEST;
504
- * console.log(process.env.TEST);
520
+ * import { env } from 'process';
521
+ *
522
+ * env.TEST = 1;
523
+ * delete env.TEST;
524
+ * console.log(env.TEST);
505
525
  * // => undefined
506
526
  * ```
507
527
  *
508
528
  * On Windows operating systems, environment variables are case-insensitive.
509
529
  *
510
530
  * ```js
511
- * process.env.TEST = 1;
512
- * console.log(process.env.test);
531
+ * import { env } from 'process';
532
+ *
533
+ * env.TEST = 1;
534
+ * console.log(env.test);
513
535
  * // => 1
514
536
  * ```
515
537
  *
@@ -532,7 +554,9 @@ declare module 'process' {
532
554
  * To exit with a 'failure' code:
533
555
  *
534
556
  * ```js
535
- * process.exit(1);
557
+ * import { exit } from 'process';
558
+ *
559
+ * exit(1);
536
560
  * ```
537
561
  *
538
562
  * The shell that executed Node.js should see the exit code as `1`.
@@ -549,10 +573,12 @@ declare module 'process' {
549
573
  * truncated and lost:
550
574
  *
551
575
  * ```js
576
+ * import { exit } from 'process';
577
+ *
552
578
  * // This is an example of what *not* to do:
553
579
  * if (someConditionNotMet()) {
554
580
  * printUsageToStdout();
555
- * process.exit(1);
581
+ * exit(1);
556
582
  * }
557
583
  * ```
558
584
  *
@@ -564,6 +590,8 @@ declare module 'process' {
564
590
  * scheduling any additional work for the event loop:
565
591
  *
566
592
  * ```js
593
+ * import process from 'process';
594
+ *
567
595
  * // How to properly set the exit code while letting
568
596
  * // the process exit gracefully.
569
597
  * if (someConditionNotMet()) {
@@ -597,6 +625,8 @@ declare module 'process' {
597
625
  * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
598
626
  *
599
627
  * ```js
628
+ * import process from 'process';
629
+ *
600
630
  * if (process.getgid) {
601
631
  * console.log(`Current gid: ${process.getgid()}`);
602
632
  * }
@@ -614,6 +644,8 @@ declare module 'process' {
614
644
  * associated numeric ID.
615
645
  *
616
646
  * ```js
647
+ * import process from 'process';
648
+ *
617
649
  * if (process.getgid && process.setgid) {
618
650
  * console.log(`Current gid: ${process.getgid()}`);
619
651
  * try {
@@ -637,6 +669,8 @@ declare module 'process' {
637
669
  * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
638
670
  *
639
671
  * ```js
672
+ * import process from 'process';
673
+ *
640
674
  * if (process.getuid) {
641
675
  * console.log(`Current uid: ${process.getuid()}`);
642
676
  * }
@@ -654,6 +688,8 @@ declare module 'process' {
654
688
  * numeric ID.
655
689
  *
656
690
  * ```js
691
+ * import process from 'process';
692
+ *
657
693
  * if (process.getuid && process.setuid) {
658
694
  * console.log(`Current uid: ${process.getuid()}`);
659
695
  * try {
@@ -676,6 +712,8 @@ declare module 'process' {
676
712
  * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
677
713
  *
678
714
  * ```js
715
+ * import process from 'process';
716
+ *
679
717
  * if (process.geteuid) {
680
718
  * console.log(`Current uid: ${process.geteuid()}`);
681
719
  * }
@@ -693,6 +731,8 @@ declare module 'process' {
693
731
  * associated numeric ID.
694
732
  *
695
733
  * ```js
734
+ * import process from 'process';
735
+ *
696
736
  * if (process.geteuid && process.seteuid) {
697
737
  * console.log(`Current uid: ${process.geteuid()}`);
698
738
  * try {
@@ -716,6 +756,8 @@ declare module 'process' {
716
756
  * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
717
757
  *
718
758
  * ```js
759
+ * import process from 'process';
760
+ *
719
761
  * if (process.getegid) {
720
762
  * console.log(`Current gid: ${process.getegid()}`);
721
763
  * }
@@ -733,6 +775,8 @@ declare module 'process' {
733
775
  * the associated a numeric ID.
734
776
  *
735
777
  * ```js
778
+ * import process from 'process';
779
+ *
736
780
  * if (process.getegid && process.setegid) {
737
781
  * console.log(`Current gid: ${process.getegid()}`);
738
782
  * try {
@@ -757,6 +801,8 @@ declare module 'process' {
757
801
  * Node.js ensures it always is.
758
802
  *
759
803
  * ```js
804
+ * import process from 'process';
805
+ *
760
806
  * if (process.getgroups) {
761
807
  * console.log(process.getgroups()); // [ 16, 21, 297 ]
762
808
  * }
@@ -775,6 +821,8 @@ declare module 'process' {
775
821
  * The `groups` array can contain numeric group IDs, group names, or both.
776
822
  *
777
823
  * ```js
824
+ * import process from 'process';
825
+ *
778
826
  * if (process.getgroups && process.setgroups) {
779
827
  * try {
780
828
  * process.setgroups([501]);
@@ -819,7 +867,9 @@ declare module 'process' {
819
867
  * The `process.version` property contains the Node.js version string.
820
868
  *
821
869
  * ```js
822
- * console.log(`Version: ${process.version}`);
870
+ * import { version } from 'process';
871
+ *
872
+ * console.log(`Version: ${version}`);
823
873
  * // Version: v14.8.0
824
874
  * ```
825
875
  *
@@ -834,7 +884,9 @@ declare module 'process' {
834
884
  * to load modules that were compiled against a different module ABI version.
835
885
  *
836
886
  * ```js
837
- * console.log(process.versions);
887
+ * import { versions } from 'process';
888
+ *
889
+ * console.log(versions);
838
890
  * ```
839
891
  *
840
892
  * Will generate an object similar to:
@@ -919,6 +971,8 @@ declare module 'process' {
919
971
  * other than kill the target process.
920
972
  *
921
973
  * ```js
974
+ * import process, { kill } from 'process';
975
+ *
922
976
  * process.on('SIGHUP', () => {
923
977
  * console.log('Got SIGHUP signal.');
924
978
  * });
@@ -928,7 +982,7 @@ declare module 'process' {
928
982
  * process.exit(0);
929
983
  * }, 100);
930
984
  *
931
- * process.kill(process.pid, 'SIGHUP');
985
+ * kill(process.pid, 'SIGHUP');
932
986
  * ```
933
987
  *
934
988
  * When `SIGUSR1` is received by a Node.js process, Node.js will start the
@@ -942,7 +996,9 @@ declare module 'process' {
942
996
  * The `process.pid` property returns the PID of the process.
943
997
  *
944
998
  * ```js
945
- * console.log(`This process is pid ${process.pid}`);
999
+ * import { pid } from 'process';
1000
+ *
1001
+ * console.log(`This process is pid ${pid}`);
946
1002
  * ```
947
1003
  * @since v0.1.15
948
1004
  */
@@ -952,7 +1008,9 @@ declare module 'process' {
952
1008
  * current process.
953
1009
  *
954
1010
  * ```js
955
- * console.log(`The parent process is pid ${process.ppid}`);
1011
+ * import { ppid } from 'process';
1012
+ *
1013
+ * console.log(`The parent process is pid ${ppid}`);
956
1014
  * ```
957
1015
  * @since v9.2.0, v8.10.0, v6.13.0
958
1016
  */
@@ -980,7 +1038,9 @@ declare module 'process' {
980
1038
  * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
981
1039
  *
982
1040
  * ```js
983
- * console.log(`This processor architecture is ${process.arch}`);
1041
+ * import { arch } from 'process';
1042
+ *
1043
+ * console.log(`This processor architecture is ${arch}`);
984
1044
  * ```
985
1045
  * @since v0.5.0
986
1046
  */
@@ -1000,7 +1060,9 @@ declare module 'process' {
1000
1060
  * * `'win32'`
1001
1061
  *
1002
1062
  * ```js
1003
- * console.log(`This platform is ${process.platform}`);
1063
+ * import { platform } from 'process';
1064
+ *
1065
+ * console.log(`This platform is ${platform}`);
1004
1066
  * ```
1005
1067
  *
1006
1068
  * The value `'android'` may also be returned if the Node.js is built on the
@@ -1032,14 +1094,16 @@ declare module 'process' {
1032
1094
  * argument to the function, to get a diff reading.
1033
1095
  *
1034
1096
  * ```js
1035
- * const startUsage = process.cpuUsage();
1097
+ * import { cpuUsage } from 'process';
1098
+ *
1099
+ * const startUsage = cpuUsage();
1036
1100
  * // { user: 38579, system: 6986 }
1037
1101
  *
1038
1102
  * // spin the CPU for 500 milliseconds
1039
1103
  * const now = Date.now();
1040
1104
  * while (Date.now() - now < 500);
1041
1105
  *
1042
- * console.log(process.cpuUsage(startUsage));
1106
+ * console.log(cpuUsage(startUsage));
1043
1107
  * // { user: 514883, system: 11226 }
1044
1108
  * ```
1045
1109
  * @since v6.1.0
@@ -1054,8 +1118,10 @@ declare module 'process' {
1054
1118
  * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background.
1055
1119
  *
1056
1120
  * ```js
1121
+ * import { nextTick } from 'process';
1122
+ *
1057
1123
  * console.log('start');
1058
- * process.nextTick(() => {
1124
+ * nextTick(() => {
1059
1125
  * console.log('nextTick callback');
1060
1126
  * });
1061
1127
  * console.log('scheduled');
@@ -1070,10 +1136,12 @@ declare module 'process' {
1070
1136
  * I/O has occurred:
1071
1137
  *
1072
1138
  * ```js
1139
+ * import { nextTick } from 'process';
1140
+ *
1073
1141
  * function MyThing(options) {
1074
1142
  * this.setupOptions(options);
1075
1143
  *
1076
- * process.nextTick(() => {
1144
+ * nextTick(() => {
1077
1145
  * this.startDoingStuff();
1078
1146
  * });
1079
1147
  * }
@@ -1116,9 +1184,11 @@ declare module 'process' {
1116
1184
  * The following approach is much better:
1117
1185
  *
1118
1186
  * ```js
1187
+ * import { nextTick } from 'process';
1188
+ *
1119
1189
  * function definitelyAsync(arg, cb) {
1120
1190
  * if (arg) {
1121
- * process.nextTick(cb);
1191
+ * nextTick(cb);
1122
1192
  * return;
1123
1193
  * }
1124
1194
  *
@@ -1246,7 +1316,9 @@ declare module 'process' {
1246
1316
  * dashes:
1247
1317
  *
1248
1318
  * ```js
1249
- * process.allowedNodeEnvironmentFlags.forEach((flag) => {
1319
+ * import { allowedNodeEnvironmentFlags } from 'process';
1320
+ *
1321
+ * allowedNodeEnvironmentFlags.forEach((flag) => {
1250
1322
  * // -r
1251
1323
  * // --inspect-brk
1252
1324
  * // --abort_on_uncaught_exception
@@ -1270,7 +1342,9 @@ declare module 'process' {
1270
1342
  report?: ProcessReport | undefined;
1271
1343
  /**
1272
1344
  * ```js
1273
- * console.log(process.resourceUsage());
1345
+ * import { resourceUsage } from 'process';
1346
+ *
1347
+ * console.log(resourceUsage());
1274
1348
  * /*
1275
1349
  * Will output:
1276
1350
  * {
node/punycode.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  /**
2
- * **The version of the punycode module bundled in Node.js is being deprecated**.
3
- * In a future major version of Node.js this module will be removed. Users
2
+ * **The version of the punycode module bundled in Node.js is being deprecated.**In a future major version of Node.js this module will be removed. Users
4
3
  * currently depending on the `punycode` module should switch to using the
5
4
  * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL
6
5
  * encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`.
@@ -25,7 +24,7 @@
25
24
  * made available to developers as a convenience. Fixes or other modifications to
26
25
  * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
27
26
  * @deprecated Since v7.0.0 - Deprecated
28
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/punycode.js)
27
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/punycode.js)
29
28
  */
30
29
  declare module 'punycode' {
31
30
  /**
node/querystring.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * The `querystring` API is considered Legacy. While it is still maintained,
10
10
  * new code should use the `<URLSearchParams>` API instead.
11
11
  * @deprecated Legacy
12
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/querystring.js)
12
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/querystring.js)
13
13
  */
14
14
  declare module 'querystring' {
15
15
  interface StringifyOptions {
node/readline.d.ts CHANGED
@@ -26,7 +26,7 @@
26
26
  *
27
27
  * Once this code is invoked, the Node.js application will not terminate until the`readline.Interface` is closed because the interface waits for data to be
28
28
  * received on the `input` stream.
29
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/readline.js)
29
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/readline.js)
30
30
  */
31
31
  declare module 'readline' {
32
32
  import { Abortable, EventEmitter } from 'node:events';
node/repl.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * const repl = require('repl');
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/repl.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/repl.js)
10
10
  */
11
11
  declare module 'repl' {
12
12
  import { Interface, Completer, AsyncCompleter } from 'node:readline';
node/stream/web.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ declare module 'stream/web' {
2
+ // stub module, pending copy&paste from .d.ts or manual impl
3
+ }
4
+
5
+ declare module 'node:stream/web' {
6
+ export * from 'stream/web';
7
+ }
node/stream.d.ts CHANGED
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * The `stream` module is useful for creating new types of stream instances. It is
16
16
  * usually not necessary to use the `stream` module to consume streams.
17
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/stream.js)
17
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/stream.js)
18
18
  */
19
19
  declare module 'stream' {
20
20
  import { EventEmitter, Abortable } from 'node:events';
node/string_decoder.d.ts CHANGED
@@ -36,7 +36,7 @@
36
36
  * decoder.write(Buffer.from([0x82]));
37
37
  * console.log(decoder.end(Buffer.from([0xAC])));
38
38
  * ```
39
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/string_decoder.js)
39
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/string_decoder.js)
40
40
  */
41
41
  declare module 'string_decoder' {
42
42
  class StringDecoder {
node/timers/promises.d.ts CHANGED
@@ -9,14 +9,6 @@
9
9
  * setInterval,
10
10
  * } from 'timers/promises';
11
11
  * ```
12
- *
13
- * ```js
14
- * const {
15
- * setTimeout,
16
- * setImmediate,
17
- * setInterval,
18
- * } = require('timers/promises');
19
- * ```
20
12
  * @since v15.0.0
21
13
  */
22
14
  declare module 'timers/promises' {
@@ -31,16 +23,6 @@ declare module 'timers/promises' {
31
23
  *
32
24
  * console.log(res); // Prints 'result'
33
25
  * ```
34
- *
35
- * ```js
36
- * const {
37
- * setTimeout,
38
- * } = require('timers/promises');
39
- *
40
- * setTimeout(100, 'result').then((res) => {
41
- * console.log(res); // Prints 'result'
42
- * });
43
- * ```
44
26
  * @since v15.0.0
45
27
  * @param [delay=1] The number of milliseconds to wait before fulfilling the promise.
46
28
  * @param value A value with which the promise is fulfilled.
@@ -56,16 +38,6 @@ declare module 'timers/promises' {
56
38
  *
57
39
  * console.log(res); // Prints 'result'
58
40
  * ```
59
- *
60
- * ```js
61
- * const {
62
- * setImmediate,
63
- * } = require('timers/promises');
64
- *
65
- * setImmediate('result').then((res) => {
66
- * console.log(res); // Prints 'result'
67
- * });
68
- * ```
69
41
  * @since v15.0.0
70
42
  * @param value A value with which the promise is fulfilled.
71
43
  */
@@ -87,23 +59,6 @@ declare module 'timers/promises' {
87
59
  * }
88
60
  * console.log(Date.now());
89
61
  * ```
90
- *
91
- * ```js
92
- * const {
93
- * setInterval,
94
- * } = require('timers/promises');
95
- * const interval = 100;
96
- *
97
- * (async function() {
98
- * for await (const startTime of setInterval(interval, Date.now())) {
99
- * const now = Date.now();
100
- * console.log(now);
101
- * if ((now - startTime) > 1000)
102
- * break;
103
- * }
104
- * console.log(Date.now());
105
- * })();
106
- * ```
107
62
  * @since v15.9.0
108
63
  */
109
64
  function setInterval<T = void>(delay?: number, value?: T, options?: TimerOptions): AsyncIterable<T>;
node/timers.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * The timer functions within Node.js implement a similar API as the timers API
7
7
  * provided by Web Browsers but use a different internal implementation that is
8
8
  * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
9
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/timers.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/timers.js)
10
10
  */
11
11
  declare module 'timers' {
12
12
  import { Abortable } from 'node:events';
node/tls.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * const tls = require('tls');
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/tls.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/tls.js)
10
10
  */
11
11
  declare module 'tls' {
12
12
  import { X509Certificate } from 'node:crypto';
@@ -452,7 +452,7 @@ declare module 'tls' {
452
452
  * SecureContext.) If SNICallback wasn't provided the default callback
453
453
  * with high-level API will be used (see below).
454
454
  */
455
- SNICallback?: ((servername: string, cb: (err: Error | null, ctx: SecureContext) => void) => void) | undefined;
455
+ SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined;
456
456
  /**
457
457
  * If true the server will reject any connection which is not
458
458
  * authorized with the list of supplied CAs. This option only has an
node/trace_events.d.ts CHANGED
@@ -73,7 +73,7 @@
73
73
  *
74
74
  * The features from this module are not available in `Worker` threads.
75
75
  * @experimental
76
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/trace_events.js)
76
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/trace_events.js)
77
77
  */
78
78
  declare module 'trace_events' {
79
79
  /**
node/ts3.6/base.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  // - ~/ts3.6/index.d.ts - Definitions specific to TypeScript 3.6 and earlier with assert pulled in
8
8
 
9
9
  // Reference required types from the default lib:
10
- /// <reference lib="es2018" />
10
+ /// <reference lib="es2020" />
11
11
  /// <reference lib="esnext.asynciterable" />
12
12
  /// <reference lib="esnext.intl" />
13
13
  /// <reference lib="esnext.bigint" />
@@ -47,6 +47,7 @@
47
47
  /// <reference path="../repl.d.ts" />
48
48
  /// <reference path="../stream.d.ts" />
49
49
  /// <reference path="../stream/promises.d.ts" />
50
+ /// <reference path="../stream/web.d.ts" />
50
51
  /// <reference path="../string_decoder.d.ts" />
51
52
  /// <reference path="../timers.d.ts" />
52
53
  /// <reference path="../timers/promises.d.ts" />
node/tty.d.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * In most cases, there should be little to no reason for an application to
24
24
  * manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
25
- * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/tty.js)
25
+ * @see [source](https://github.com/nodejs/node/blob/v16.6.0/lib/tty.js)
26
26
  */
27
27
  declare module 'tty' {
28
28
  import * as net from 'node:net';
@@ -176,9 +176,9 @@ declare module 'tty' {
176
176
  hasColors(env?: object): boolean;
177
177
  hasColors(count: number, env?: object): boolean;
178
178
  /**
179
- * `writeStream.getWindowSize()` returns the size of the `TTY` corresponding to this `WriteStream`. The array is of the type`[numColumns, numRows]` where `numColumns` and `numRows` represent
180
- * the number
181
- * of columns and rows in the corresponding `TTY`.
179
+ * `writeStream.getWindowSize()` returns the size of the TTY
180
+ * corresponding to this `WriteStream`. The array is of the type`[numColumns, numRows]` where `numColumns` and `numRows` represent the number
181
+ * of columns and rows in the corresponding TTY.
182
182
  * @since v0.7.7
183
183
  */
184
184
  getWindowSize(): [number, number];