@types/node 14.18.6 → 15.0.0

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.
Files changed (58) hide show
  1. {node v14.18 → node}/LICENSE +0 -0
  2. node/README.md +16 -0
  3. node/assert/strict.d.ts +4 -0
  4. node v14.18/assert.d.ts → node/assert.d.ts +8 -7
  5. node v14.18/async_hooks.d.ts → node/async_hooks.d.ts +11 -7
  6. node/base.d.ts +19 -0
  7. node v14.18/buffer.d.ts → node/buffer.d.ts +4 -3
  8. node v14.18/child_process.d.ts → node/child_process.d.ts +71 -71
  9. node v14.18/cluster.d.ts → node/cluster.d.ts +17 -16
  10. node v14.18/console.d.ts → node/console.d.ts +17 -22
  11. node v14.18/constants.d.ts → node/constants.d.ts +9 -8
  12. node v14.18/crypto.d.ts → node/crypto.d.ts +139 -54
  13. node v14.18/dgram.d.ts → node/dgram.d.ts +24 -23
  14. node/dns/promises.d.ts +101 -0
  15. node/dns.d.ts +326 -0
  16. node v14.18/domain.d.ts → node/domain.d.ts +5 -4
  17. node v14.18/events.d.ts → node/events.d.ts +13 -8
  18. node v14.18/fs/promises.d.ts → node/fs/promises.d.ts +23 -30
  19. node v14.18/fs.d.ts → node/fs.d.ts +85 -97
  20. node v14.18/globals.d.ts → node/globals.d.ts +60 -24
  21. {node v14.18 → node}/globals.global.d.ts +0 -0
  22. node v14.18/http.d.ts → node/http.d.ts +114 -178
  23. node v14.18/http2.d.ts → node/http2.d.ts +86 -79
  24. node/https.d.ts +40 -0
  25. node v14.18/index.d.ts → node/index.d.ts +15 -55
  26. node v14.18/inspector.d.ts → node/inspector.d.ts +159 -162
  27. node v14.18/module.d.ts → node/module.d.ts +6 -5
  28. node v14.18/net.d.ts → node/net.d.ts +77 -45
  29. node v14.18/os.d.ts → node/os.d.ts +4 -3
  30. node v14.18/package.json → node/package.json +25 -19
  31. node v14.18/path.d.ts → node/path.d.ts +10 -9
  32. node v14.18/perf_hooks.d.ts → node/perf_hooks.d.ts +10 -9
  33. node v14.18/process.d.ts → node/process.d.ts +58 -18
  34. node v14.18/punycode.d.ts → node/punycode.d.ts +11 -3
  35. node v14.18/querystring.d.ts → node/querystring.d.ts +7 -6
  36. node v14.18/readline.d.ts → node/readline.d.ts +19 -19
  37. node v14.18/repl.d.ts → node/repl.d.ts +24 -23
  38. node/stream/promises.d.ts +71 -0
  39. node v14.18/stream.d.ts → node/stream.d.ts +170 -61
  40. node v14.18/string_decoder.d.ts → node/string_decoder.d.ts +4 -3
  41. node/timers/promises.d.ts +17 -0
  42. node v14.18/timers.d.ts → node/timers.d.ts +20 -5
  43. node v14.18/tls.d.ts → node/tls.d.ts +56 -57
  44. node v14.18/trace_events.d.ts → node/trace_events.d.ts +4 -3
  45. node/ts3.6/assert.d.ts +103 -0
  46. node/ts3.6/base.d.ts +66 -0
  47. node/ts3.6/index.d.ts +7 -0
  48. node v14.18/tty.d.ts → node/tty.d.ts +5 -4
  49. node v14.18/url.d.ts → node/url.d.ts +21 -20
  50. node v14.18/util.d.ts → node/util.d.ts +7 -12
  51. node v14.18/v8.d.ts → node/v8.d.ts +5 -4
  52. node v14.18/vm.d.ts → node/vm.d.ts +29 -28
  53. node v14.18/wasi.d.ts → node/wasi.d.ts +11 -10
  54. node v14.18/worker_threads.d.ts → node/worker_threads.d.ts +27 -23
  55. node v14.18/zlib.d.ts → node/zlib.d.ts +21 -20
  56. node v14.18/README.md +0 -16
  57. node v14.18/dns.d.ts +0 -387
  58. node v14.18/https.d.ts +0 -142
@@ -7,11 +7,18 @@
7
7
 
8
8
  // tslint:disable:max-line-length
9
9
 
10
+ /**
11
+ * The inspector module provides an API for interacting with the V8 inspector.
12
+ */
13
+ declare module 'node:inspector' {
14
+ export * from 'inspector';
15
+ }
16
+
10
17
  /**
11
18
  * The inspector module provides an API for interacting with the V8 inspector.
12
19
  */
13
20
  declare module 'inspector' {
14
- import EventEmitter = require('events');
21
+ import EventEmitter = require('node:events');
15
22
 
16
23
  interface InspectorNotification<T> {
17
24
  method: string;
@@ -68,11 +75,11 @@ declare module 'inspector' {
68
75
  /**
69
76
  * Object subtype hint. Specified for <code>object</code> type values only.
70
77
  */
71
- subtype?: string | undefined;
78
+ subtype?: string;
72
79
  /**
73
80
  * Object class (constructor) name. Specified for <code>object</code> type values only.
74
81
  */
75
- className?: string | undefined;
82
+ className?: string;
76
83
  /**
77
84
  * Remote object value in case of primitive values or JSON values (if it was requested).
78
85
  */
@@ -80,24 +87,24 @@ declare module 'inspector' {
80
87
  /**
81
88
  * Primitive value which can not be JSON-stringified does not have <code>value</code>, but gets this property.
82
89
  */
83
- unserializableValue?: UnserializableValue | undefined;
90
+ unserializableValue?: UnserializableValue;
84
91
  /**
85
92
  * String representation of the object.
86
93
  */
87
- description?: string | undefined;
94
+ description?: string;
88
95
  /**
89
96
  * Unique object identifier (for non-primitive values).
90
97
  */
91
- objectId?: RemoteObjectId | undefined;
98
+ objectId?: RemoteObjectId;
92
99
  /**
93
100
  * Preview containing abbreviated property values. Specified for <code>object</code> type values only.
94
101
  * @experimental
95
102
  */
96
- preview?: ObjectPreview | undefined;
103
+ preview?: ObjectPreview;
97
104
  /**
98
105
  * @experimental
99
106
  */
100
- customPreview?: CustomPreview | undefined;
107
+ customPreview?: CustomPreview;
101
108
  }
102
109
 
103
110
  /**
@@ -108,7 +115,7 @@ declare module 'inspector' {
108
115
  hasBody: boolean;
109
116
  formatterObjectId: RemoteObjectId;
110
117
  bindRemoteObjectFunctionId: RemoteObjectId;
111
- configObjectId?: RemoteObjectId | undefined;
118
+ configObjectId?: RemoteObjectId;
112
119
  }
113
120
 
114
121
  /**
@@ -123,11 +130,11 @@ declare module 'inspector' {
123
130
  /**
124
131
  * Object subtype hint. Specified for <code>object</code> type values only.
125
132
  */
126
- subtype?: string | undefined;
133
+ subtype?: string;
127
134
  /**
128
135
  * String representation of the object.
129
136
  */
130
- description?: string | undefined;
137
+ description?: string;
131
138
  /**
132
139
  * True iff some of the properties or entries of the original object did not fit.
133
140
  */
@@ -139,7 +146,7 @@ declare module 'inspector' {
139
146
  /**
140
147
  * List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.
141
148
  */
142
- entries?: EntryPreview[] | undefined;
149
+ entries?: EntryPreview[];
143
150
  }
144
151
 
145
152
  /**
@@ -157,15 +164,15 @@ declare module 'inspector' {
157
164
  /**
158
165
  * User-friendly property value string.
159
166
  */
160
- value?: string | undefined;
167
+ value?: string;
161
168
  /**
162
169
  * Nested value preview.
163
170
  */
164
- valuePreview?: ObjectPreview | undefined;
171
+ valuePreview?: ObjectPreview;
165
172
  /**
166
173
  * Object subtype hint. Specified for <code>object</code> type values only.
167
174
  */
168
- subtype?: string | undefined;
175
+ subtype?: string;
169
176
  }
170
177
 
171
178
  /**
@@ -175,7 +182,7 @@ declare module 'inspector' {
175
182
  /**
176
183
  * Preview of the key. Specified for map-like collection entries.
177
184
  */
178
- key?: ObjectPreview | undefined;
185
+ key?: ObjectPreview;
179
186
  /**
180
187
  * Preview of the value.
181
188
  */
@@ -193,19 +200,19 @@ declare module 'inspector' {
193
200
  /**
194
201
  * The value associated with the property.
195
202
  */
196
- value?: RemoteObject | undefined;
203
+ value?: RemoteObject;
197
204
  /**
198
205
  * True if the value associated with the property may be changed (data descriptors only).
199
206
  */
200
- writable?: boolean | undefined;
207
+ writable?: boolean;
201
208
  /**
202
209
  * A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).
203
210
  */
204
- get?: RemoteObject | undefined;
211
+ get?: RemoteObject;
205
212
  /**
206
213
  * A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).
207
214
  */
208
- set?: RemoteObject | undefined;
215
+ set?: RemoteObject;
209
216
  /**
210
217
  * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
211
218
  */
@@ -217,15 +224,15 @@ declare module 'inspector' {
217
224
  /**
218
225
  * True if the result was thrown during the evaluation.
219
226
  */
220
- wasThrown?: boolean | undefined;
227
+ wasThrown?: boolean;
221
228
  /**
222
229
  * True if the property is owned for the object.
223
230
  */
224
- isOwn?: boolean | undefined;
231
+ isOwn?: boolean;
225
232
  /**
226
233
  * Property symbol object, if the property is of the <code>symbol</code> type.
227
234
  */
228
- symbol?: RemoteObject | undefined;
235
+ symbol?: RemoteObject;
229
236
  }
230
237
 
231
238
  /**
@@ -239,7 +246,7 @@ declare module 'inspector' {
239
246
  /**
240
247
  * The value associated with the property.
241
248
  */
242
- value?: RemoteObject | undefined;
249
+ value?: RemoteObject;
243
250
  }
244
251
 
245
252
  /**
@@ -253,11 +260,11 @@ declare module 'inspector' {
253
260
  /**
254
261
  * Primitive value which can not be JSON-stringified.
255
262
  */
256
- unserializableValue?: UnserializableValue | undefined;
263
+ unserializableValue?: UnserializableValue;
257
264
  /**
258
265
  * Remote object handle.
259
266
  */
260
- objectId?: RemoteObjectId | undefined;
267
+ objectId?: RemoteObjectId;
261
268
  }
262
269
 
263
270
  /**
@@ -284,7 +291,7 @@ declare module 'inspector' {
284
291
  /**
285
292
  * Embedder-specific auxiliary data.
286
293
  */
287
- auxData?: {} | undefined;
294
+ auxData?: {};
288
295
  }
289
296
 
290
297
  /**
@@ -310,23 +317,23 @@ declare module 'inspector' {
310
317
  /**
311
318
  * Script ID of the exception location.
312
319
  */
313
- scriptId?: ScriptId | undefined;
320
+ scriptId?: ScriptId;
314
321
  /**
315
322
  * URL of the exception location, to be used when the script was not reported.
316
323
  */
317
- url?: string | undefined;
324
+ url?: string;
318
325
  /**
319
326
  * JavaScript stack trace if available.
320
327
  */
321
- stackTrace?: StackTrace | undefined;
328
+ stackTrace?: StackTrace;
322
329
  /**
323
330
  * Exception object if available.
324
331
  */
325
- exception?: RemoteObject | undefined;
332
+ exception?: RemoteObject;
326
333
  /**
327
334
  * Identifier of the context where exception happened.
328
335
  */
329
- executionContextId?: ExecutionContextId | undefined;
336
+ executionContextId?: ExecutionContextId;
330
337
  }
331
338
 
332
339
  /**
@@ -367,7 +374,7 @@ declare module 'inspector' {
367
374
  /**
368
375
  * String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
369
376
  */
370
- description?: string | undefined;
377
+ description?: string;
371
378
  /**
372
379
  * JavaScript function name.
373
380
  */
@@ -375,12 +382,12 @@ declare module 'inspector' {
375
382
  /**
376
383
  * Asynchronous JavaScript stack trace that preceded this stack, if available.
377
384
  */
378
- parent?: StackTrace | undefined;
385
+ parent?: StackTrace;
379
386
  /**
380
387
  * Asynchronous JavaScript stack trace that preceded this stack, if available.
381
388
  * @experimental
382
389
  */
383
- parentId?: StackTraceId | undefined;
390
+ parentId?: StackTraceId;
384
391
  }
385
392
 
386
393
  /**
@@ -395,7 +402,7 @@ declare module 'inspector' {
395
402
  */
396
403
  interface StackTraceId {
397
404
  id: string;
398
- debuggerId?: UniqueDebuggerId | undefined;
405
+ debuggerId?: UniqueDebuggerId;
399
406
  }
400
407
 
401
408
  interface EvaluateParameterType {
@@ -406,36 +413,36 @@ declare module 'inspector' {
406
413
  /**
407
414
  * Symbolic group name that can be used to release multiple objects.
408
415
  */
409
- objectGroup?: string | undefined;
416
+ objectGroup?: string;
410
417
  /**
411
418
  * Determines whether Command Line API should be available during the evaluation.
412
419
  */
413
- includeCommandLineAPI?: boolean | undefined;
420
+ includeCommandLineAPI?: boolean;
414
421
  /**
415
422
  * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
416
423
  */
417
- silent?: boolean | undefined;
424
+ silent?: boolean;
418
425
  /**
419
426
  * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
420
427
  */
421
- contextId?: ExecutionContextId | undefined;
428
+ contextId?: ExecutionContextId;
422
429
  /**
423
430
  * Whether the result is expected to be a JSON object that should be sent by value.
424
431
  */
425
- returnByValue?: boolean | undefined;
432
+ returnByValue?: boolean;
426
433
  /**
427
434
  * Whether preview should be generated for the result.
428
435
  * @experimental
429
436
  */
430
- generatePreview?: boolean | undefined;
437
+ generatePreview?: boolean;
431
438
  /**
432
439
  * Whether execution should be treated as initiated by user in the UI.
433
440
  */
434
- userGesture?: boolean | undefined;
441
+ userGesture?: boolean;
435
442
  /**
436
443
  * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
437
444
  */
438
- awaitPromise?: boolean | undefined;
445
+ awaitPromise?: boolean;
439
446
  }
440
447
 
441
448
  interface AwaitPromiseParameterType {
@@ -446,11 +453,11 @@ declare module 'inspector' {
446
453
  /**
447
454
  * Whether the result is expected to be a JSON object that should be sent by value.
448
455
  */
449
- returnByValue?: boolean | undefined;
456
+ returnByValue?: boolean;
450
457
  /**
451
458
  * Whether preview should be generated for the result.
452
459
  */
453
- generatePreview?: boolean | undefined;
460
+ generatePreview?: boolean;
454
461
  }
455
462
 
456
463
  interface CallFunctionOnParameterType {
@@ -461,40 +468,40 @@ declare module 'inspector' {
461
468
  /**
462
469
  * Identifier of the object to call function on. Either objectId or executionContextId should be specified.
463
470
  */
464
- objectId?: RemoteObjectId | undefined;
471
+ objectId?: RemoteObjectId;
465
472
  /**
466
473
  * Call arguments. All call arguments must belong to the same JavaScript world as the target object.
467
474
  */
468
- arguments?: CallArgument[] | undefined;
475
+ arguments?: CallArgument[];
469
476
  /**
470
477
  * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
471
478
  */
472
- silent?: boolean | undefined;
479
+ silent?: boolean;
473
480
  /**
474
481
  * Whether the result is expected to be a JSON object which should be sent by value.
475
482
  */
476
- returnByValue?: boolean | undefined;
483
+ returnByValue?: boolean;
477
484
  /**
478
485
  * Whether preview should be generated for the result.
479
486
  * @experimental
480
487
  */
481
- generatePreview?: boolean | undefined;
488
+ generatePreview?: boolean;
482
489
  /**
483
490
  * Whether execution should be treated as initiated by user in the UI.
484
491
  */
485
- userGesture?: boolean | undefined;
492
+ userGesture?: boolean;
486
493
  /**
487
494
  * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
488
495
  */
489
- awaitPromise?: boolean | undefined;
496
+ awaitPromise?: boolean;
490
497
  /**
491
498
  * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
492
499
  */
493
- executionContextId?: ExecutionContextId | undefined;
500
+ executionContextId?: ExecutionContextId;
494
501
  /**
495
502
  * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
496
503
  */
497
- objectGroup?: string | undefined;
504
+ objectGroup?: string;
498
505
  }
499
506
 
500
507
  interface GetPropertiesParameterType {
@@ -505,17 +512,17 @@ declare module 'inspector' {
505
512
  /**
506
513
  * If true, returns properties belonging only to the element itself, not to its prototype chain.
507
514
  */
508
- ownProperties?: boolean | undefined;
515
+ ownProperties?: boolean;
509
516
  /**
510
517
  * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
511
518
  * @experimental
512
519
  */
513
- accessorPropertiesOnly?: boolean | undefined;
520
+ accessorPropertiesOnly?: boolean;
514
521
  /**
515
522
  * Whether preview should be generated for the results.
516
523
  * @experimental
517
524
  */
518
- generatePreview?: boolean | undefined;
525
+ generatePreview?: boolean;
519
526
  }
520
527
 
521
528
  interface ReleaseObjectParameterType {
@@ -552,7 +559,7 @@ declare module 'inspector' {
552
559
  /**
553
560
  * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
554
561
  */
555
- executionContextId?: ExecutionContextId | undefined;
562
+ executionContextId?: ExecutionContextId;
556
563
  }
557
564
 
558
565
  interface RunScriptParameterType {
@@ -563,31 +570,31 @@ declare module 'inspector' {
563
570
  /**
564
571
  * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
565
572
  */
566
- executionContextId?: ExecutionContextId | undefined;
573
+ executionContextId?: ExecutionContextId;
567
574
  /**
568
575
  * Symbolic group name that can be used to release multiple objects.
569
576
  */
570
- objectGroup?: string | undefined;
577
+ objectGroup?: string;
571
578
  /**
572
579
  * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
573
580
  */
574
- silent?: boolean | undefined;
581
+ silent?: boolean;
575
582
  /**
576
583
  * Determines whether Command Line API should be available during the evaluation.
577
584
  */
578
- includeCommandLineAPI?: boolean | undefined;
585
+ includeCommandLineAPI?: boolean;
579
586
  /**
580
587
  * Whether the result is expected to be a JSON object which should be sent by value.
581
588
  */
582
- returnByValue?: boolean | undefined;
589
+ returnByValue?: boolean;
583
590
  /**
584
591
  * Whether preview should be generated for the result.
585
592
  */
586
- generatePreview?: boolean | undefined;
593
+ generatePreview?: boolean;
587
594
  /**
588
595
  * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
589
596
  */
590
- awaitPromise?: boolean | undefined;
597
+ awaitPromise?: boolean;
591
598
  }
592
599
 
593
600
  interface QueryObjectsParameterType {
@@ -601,7 +608,7 @@ declare module 'inspector' {
601
608
  /**
602
609
  * Specifies in which execution context to lookup global scope variables.
603
610
  */
604
- executionContextId?: ExecutionContextId | undefined;
611
+ executionContextId?: ExecutionContextId;
605
612
  }
606
613
 
607
614
  interface EvaluateReturnType {
@@ -612,7 +619,7 @@ declare module 'inspector' {
612
619
  /**
613
620
  * Exception details.
614
621
  */
615
- exceptionDetails?: ExceptionDetails | undefined;
622
+ exceptionDetails?: ExceptionDetails;
616
623
  }
617
624
 
618
625
  interface AwaitPromiseReturnType {
@@ -623,7 +630,7 @@ declare module 'inspector' {
623
630
  /**
624
631
  * Exception details if stack strace is available.
625
632
  */
626
- exceptionDetails?: ExceptionDetails | undefined;
633
+ exceptionDetails?: ExceptionDetails;
627
634
  }
628
635
 
629
636
  interface CallFunctionOnReturnType {
@@ -634,7 +641,7 @@ declare module 'inspector' {
634
641
  /**
635
642
  * Exception details.
636
643
  */
637
- exceptionDetails?: ExceptionDetails | undefined;
644
+ exceptionDetails?: ExceptionDetails;
638
645
  }
639
646
 
640
647
  interface GetPropertiesReturnType {
@@ -645,22 +652,22 @@ declare module 'inspector' {
645
652
  /**
646
653
  * Internal object properties (only of the element itself).
647
654
  */
648
- internalProperties?: InternalPropertyDescriptor[] | undefined;
655
+ internalProperties?: InternalPropertyDescriptor[];
649
656
  /**
650
657
  * Exception details.
651
658
  */
652
- exceptionDetails?: ExceptionDetails | undefined;
659
+ exceptionDetails?: ExceptionDetails;
653
660
  }
654
661
 
655
662
  interface CompileScriptReturnType {
656
663
  /**
657
664
  * Id of the script.
658
665
  */
659
- scriptId?: ScriptId | undefined;
666
+ scriptId?: ScriptId;
660
667
  /**
661
668
  * Exception details.
662
669
  */
663
- exceptionDetails?: ExceptionDetails | undefined;
670
+ exceptionDetails?: ExceptionDetails;
664
671
  }
665
672
 
666
673
  interface RunScriptReturnType {
@@ -671,7 +678,7 @@ declare module 'inspector' {
671
678
  /**
672
679
  * Exception details.
673
680
  */
674
- exceptionDetails?: ExceptionDetails | undefined;
681
+ exceptionDetails?: ExceptionDetails;
675
682
  }
676
683
 
677
684
  interface QueryObjectsReturnType {
@@ -738,12 +745,12 @@ declare module 'inspector' {
738
745
  /**
739
746
  * Stack trace captured when the call was made.
740
747
  */
741
- stackTrace?: StackTrace | undefined;
748
+ stackTrace?: StackTrace;
742
749
  /**
743
750
  * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
744
751
  * @experimental
745
752
  */
746
- context?: string | undefined;
753
+ context?: string;
747
754
  }
748
755
 
749
756
  interface InspectRequestedEventDataType {
@@ -778,7 +785,7 @@ declare module 'inspector' {
778
785
  /**
779
786
  * Column number in the script (0-based).
780
787
  */
781
- columnNumber?: number | undefined;
788
+ columnNumber?: number;
782
789
  }
783
790
 
784
791
  /**
@@ -805,7 +812,7 @@ declare module 'inspector' {
805
812
  /**
806
813
  * Location in the source code.
807
814
  */
808
- functionLocation?: Location | undefined;
815
+ functionLocation?: Location;
809
816
  /**
810
817
  * Location in the source code.
811
818
  */
@@ -825,7 +832,7 @@ declare module 'inspector' {
825
832
  /**
826
833
  * The value being returned, if the function is at return point.
827
834
  */
828
- returnValue?: Runtime.RemoteObject | undefined;
835
+ returnValue?: Runtime.RemoteObject;
829
836
  }
830
837
 
831
838
  /**
@@ -840,15 +847,15 @@ declare module 'inspector' {
840
847
  * Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
841
848
  */
842
849
  object: Runtime.RemoteObject;
843
- name?: string | undefined;
850
+ name?: string;
844
851
  /**
845
852
  * Location in the source code where scope starts
846
853
  */
847
- startLocation?: Location | undefined;
854
+ startLocation?: Location;
848
855
  /**
849
856
  * Location in the source code where scope ends
850
857
  */
851
- endLocation?: Location | undefined;
858
+ endLocation?: Location;
852
859
  }
853
860
 
854
861
  /**
@@ -877,8 +884,8 @@ declare module 'inspector' {
877
884
  /**
878
885
  * Column number in the script (0-based).
879
886
  */
880
- columnNumber?: number | undefined;
881
- type?: string | undefined;
887
+ columnNumber?: number;
888
+ type?: string;
882
889
  }
883
890
 
884
891
  interface SetBreakpointsActiveParameterType {
@@ -903,23 +910,23 @@ declare module 'inspector' {
903
910
  /**
904
911
  * URL of the resources to set breakpoint on.
905
912
  */
906
- url?: string | undefined;
913
+ url?: string;
907
914
  /**
908
915
  * Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.
909
916
  */
910
- urlRegex?: string | undefined;
917
+ urlRegex?: string;
911
918
  /**
912
919
  * Script hash of the resources to set breakpoint on.
913
920
  */
914
- scriptHash?: string | undefined;
921
+ scriptHash?: string;
915
922
  /**
916
923
  * Offset in the line to set breakpoint at.
917
924
  */
918
- columnNumber?: number | undefined;
925
+ columnNumber?: number;
919
926
  /**
920
927
  * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
921
928
  */
922
- condition?: string | undefined;
929
+ condition?: string;
923
930
  }
924
931
 
925
932
  interface SetBreakpointParameterType {
@@ -930,7 +937,7 @@ declare module 'inspector' {
930
937
  /**
931
938
  * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
932
939
  */
933
- condition?: string | undefined;
940
+ condition?: string;
934
941
  }
935
942
 
936
943
  interface RemoveBreakpointParameterType {
@@ -945,11 +952,11 @@ declare module 'inspector' {
945
952
  /**
946
953
  * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
947
954
  */
948
- end?: Location | undefined;
955
+ end?: Location;
949
956
  /**
950
957
  * Only consider locations which are in the same (non-nested) function as start.
951
958
  */
952
- restrictToFunction?: boolean | undefined;
959
+ restrictToFunction?: boolean;
953
960
  }
954
961
 
955
962
  interface ContinueToLocationParameterType {
@@ -957,7 +964,7 @@ declare module 'inspector' {
957
964
  * Location to continue to.
958
965
  */
959
966
  location: Location;
960
- targetCallFrames?: string | undefined;
967
+ targetCallFrames?: string;
961
968
  }
962
969
 
963
970
  interface PauseOnAsyncCallParameterType {
@@ -972,7 +979,7 @@ declare module 'inspector' {
972
979
  * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
973
980
  * @experimental
974
981
  */
975
- breakOnAsyncCall?: boolean | undefined;
982
+ breakOnAsyncCall?: boolean;
976
983
  }
977
984
 
978
985
  interface GetStackTraceParameterType {
@@ -991,11 +998,11 @@ declare module 'inspector' {
991
998
  /**
992
999
  * If true, search is case sensitive.
993
1000
  */
994
- caseSensitive?: boolean | undefined;
1001
+ caseSensitive?: boolean;
995
1002
  /**
996
1003
  * If true, treats string parameter as regex.
997
1004
  */
998
- isRegex?: boolean | undefined;
1005
+ isRegex?: boolean;
999
1006
  }
1000
1007
 
1001
1008
  interface SetScriptSourceParameterType {
@@ -1010,7 +1017,7 @@ declare module 'inspector' {
1010
1017
  /**
1011
1018
  * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
1012
1019
  */
1013
- dryRun?: boolean | undefined;
1020
+ dryRun?: boolean;
1014
1021
  }
1015
1022
 
1016
1023
  interface RestartFrameParameterType {
@@ -1046,28 +1053,28 @@ declare module 'inspector' {
1046
1053
  /**
1047
1054
  * String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).
1048
1055
  */
1049
- objectGroup?: string | undefined;
1056
+ objectGroup?: string;
1050
1057
  /**
1051
1058
  * Specifies whether command line API should be available to the evaluated expression, defaults to false.
1052
1059
  */
1053
- includeCommandLineAPI?: boolean | undefined;
1060
+ includeCommandLineAPI?: boolean;
1054
1061
  /**
1055
1062
  * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
1056
1063
  */
1057
- silent?: boolean | undefined;
1064
+ silent?: boolean;
1058
1065
  /**
1059
1066
  * Whether the result is expected to be a JSON object that should be sent by value.
1060
1067
  */
1061
- returnByValue?: boolean | undefined;
1068
+ returnByValue?: boolean;
1062
1069
  /**
1063
1070
  * Whether preview should be generated for the result.
1064
1071
  * @experimental
1065
1072
  */
1066
- generatePreview?: boolean | undefined;
1073
+ generatePreview?: boolean;
1067
1074
  /**
1068
1075
  * Whether to throw an exception if side effect cannot be ruled out during evaluation.
1069
1076
  */
1070
- throwOnSideEffect?: boolean | undefined;
1077
+ throwOnSideEffect?: boolean;
1071
1078
  }
1072
1079
 
1073
1080
  interface SetVariableValueParameterType {
@@ -1170,24 +1177,24 @@ declare module 'inspector' {
1170
1177
  /**
1171
1178
  * New stack trace in case editing has happened while VM was stopped.
1172
1179
  */
1173
- callFrames?: CallFrame[] | undefined;
1180
+ callFrames?: CallFrame[];
1174
1181
  /**
1175
1182
  * Whether current call stack was modified after applying the changes.
1176
1183
  */
1177
- stackChanged?: boolean | undefined;
1184
+ stackChanged?: boolean;
1178
1185
  /**
1179
1186
  * Async stack trace, if any.
1180
1187
  */
1181
- asyncStackTrace?: Runtime.StackTrace | undefined;
1188
+ asyncStackTrace?: Runtime.StackTrace;
1182
1189
  /**
1183
1190
  * Async stack trace, if any.
1184
1191
  * @experimental
1185
1192
  */
1186
- asyncStackTraceId?: Runtime.StackTraceId | undefined;
1193
+ asyncStackTraceId?: Runtime.StackTraceId;
1187
1194
  /**
1188
1195
  * Exception details if any.
1189
1196
  */
1190
- exceptionDetails?: Runtime.ExceptionDetails | undefined;
1197
+ exceptionDetails?: Runtime.ExceptionDetails;
1191
1198
  }
1192
1199
 
1193
1200
  interface RestartFrameReturnType {
@@ -1198,12 +1205,12 @@ declare module 'inspector' {
1198
1205
  /**
1199
1206
  * Async stack trace, if any.
1200
1207
  */
1201
- asyncStackTrace?: Runtime.StackTrace | undefined;
1208
+ asyncStackTrace?: Runtime.StackTrace;
1202
1209
  /**
1203
1210
  * Async stack trace, if any.
1204
1211
  * @experimental
1205
1212
  */
1206
- asyncStackTraceId?: Runtime.StackTraceId | undefined;
1213
+ asyncStackTraceId?: Runtime.StackTraceId;
1207
1214
  }
1208
1215
 
1209
1216
  interface GetScriptSourceReturnType {
@@ -1221,7 +1228,7 @@ declare module 'inspector' {
1221
1228
  /**
1222
1229
  * Exception details.
1223
1230
  */
1224
- exceptionDetails?: Runtime.ExceptionDetails | undefined;
1231
+ exceptionDetails?: Runtime.ExceptionDetails;
1225
1232
  }
1226
1233
 
1227
1234
  interface ScriptParsedEventDataType {
@@ -1260,33 +1267,33 @@ declare module 'inspector' {
1260
1267
  /**
1261
1268
  * Embedder-specific auxiliary data.
1262
1269
  */
1263
- executionContextAuxData?: {} | undefined;
1270
+ executionContextAuxData?: {};
1264
1271
  /**
1265
1272
  * True, if this script is generated as a result of the live edit operation.
1266
1273
  * @experimental
1267
1274
  */
1268
- isLiveEdit?: boolean | undefined;
1275
+ isLiveEdit?: boolean;
1269
1276
  /**
1270
1277
  * URL of source map associated with script (if any).
1271
1278
  */
1272
- sourceMapURL?: string | undefined;
1279
+ sourceMapURL?: string;
1273
1280
  /**
1274
1281
  * True, if this script has sourceURL.
1275
1282
  */
1276
- hasSourceURL?: boolean | undefined;
1283
+ hasSourceURL?: boolean;
1277
1284
  /**
1278
1285
  * True, if this script is ES6 module.
1279
1286
  */
1280
- isModule?: boolean | undefined;
1287
+ isModule?: boolean;
1281
1288
  /**
1282
1289
  * This script length.
1283
1290
  */
1284
- length?: number | undefined;
1291
+ length?: number;
1285
1292
  /**
1286
1293
  * JavaScript top stack frame of where the script parsed event was triggered if available.
1287
1294
  * @experimental
1288
1295
  */
1289
- stackTrace?: Runtime.StackTrace | undefined;
1296
+ stackTrace?: Runtime.StackTrace;
1290
1297
  }
1291
1298
 
1292
1299
  interface ScriptFailedToParseEventDataType {
@@ -1325,28 +1332,28 @@ declare module 'inspector' {
1325
1332
  /**
1326
1333
  * Embedder-specific auxiliary data.
1327
1334
  */
1328
- executionContextAuxData?: {} | undefined;
1335
+ executionContextAuxData?: {};
1329
1336
  /**
1330
1337
  * URL of source map associated with script (if any).
1331
1338
  */
1332
- sourceMapURL?: string | undefined;
1339
+ sourceMapURL?: string;
1333
1340
  /**
1334
1341
  * True, if this script has sourceURL.
1335
1342
  */
1336
- hasSourceURL?: boolean | undefined;
1343
+ hasSourceURL?: boolean;
1337
1344
  /**
1338
1345
  * True, if this script is ES6 module.
1339
1346
  */
1340
- isModule?: boolean | undefined;
1347
+ isModule?: boolean;
1341
1348
  /**
1342
1349
  * This script length.
1343
1350
  */
1344
- length?: number | undefined;
1351
+ length?: number;
1345
1352
  /**
1346
1353
  * JavaScript top stack frame of where the script parsed event was triggered if available.
1347
1354
  * @experimental
1348
1355
  */
1349
- stackTrace?: Runtime.StackTrace | undefined;
1356
+ stackTrace?: Runtime.StackTrace;
1350
1357
  }
1351
1358
 
1352
1359
  interface BreakpointResolvedEventDataType {
@@ -1372,25 +1379,25 @@ declare module 'inspector' {
1372
1379
  /**
1373
1380
  * Object containing break-specific auxiliary properties.
1374
1381
  */
1375
- data?: {} | undefined;
1382
+ data?: {};
1376
1383
  /**
1377
1384
  * Hit breakpoints IDs
1378
1385
  */
1379
- hitBreakpoints?: string[] | undefined;
1386
+ hitBreakpoints?: string[];
1380
1387
  /**
1381
1388
  * Async stack trace, if any.
1382
1389
  */
1383
- asyncStackTrace?: Runtime.StackTrace | undefined;
1390
+ asyncStackTrace?: Runtime.StackTrace;
1384
1391
  /**
1385
1392
  * Async stack trace, if any.
1386
1393
  * @experimental
1387
1394
  */
1388
- asyncStackTraceId?: Runtime.StackTraceId | undefined;
1395
+ asyncStackTraceId?: Runtime.StackTraceId;
1389
1396
  /**
1390
1397
  * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after <code>Debugger.stepInto</code> call with <code>breakOnAsynCall</code> flag.
1391
1398
  * @experimental
1392
1399
  */
1393
- asyncCallStackTraceId?: Runtime.StackTraceId | undefined;
1400
+ asyncCallStackTraceId?: Runtime.StackTraceId;
1394
1401
  }
1395
1402
  }
1396
1403
 
@@ -1414,15 +1421,15 @@ declare module 'inspector' {
1414
1421
  /**
1415
1422
  * URL of the message origin.
1416
1423
  */
1417
- url?: string | undefined;
1424
+ url?: string;
1418
1425
  /**
1419
1426
  * Line number in the resource that generated this message (1-based).
1420
1427
  */
1421
- line?: number | undefined;
1428
+ line?: number;
1422
1429
  /**
1423
1430
  * Column number in the resource that generated this message (1-based).
1424
1431
  */
1425
- column?: number | undefined;
1432
+ column?: number;
1426
1433
  }
1427
1434
 
1428
1435
  interface MessageAddedEventDataType {
@@ -1449,19 +1456,19 @@ declare module 'inspector' {
1449
1456
  /**
1450
1457
  * Number of samples where this node was on top of the call stack.
1451
1458
  */
1452
- hitCount?: number | undefined;
1459
+ hitCount?: number;
1453
1460
  /**
1454
1461
  * Child node ids.
1455
1462
  */
1456
- children?: number[] | undefined;
1463
+ children?: number[];
1457
1464
  /**
1458
1465
  * The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
1459
1466
  */
1460
- deoptReason?: string | undefined;
1467
+ deoptReason?: string;
1461
1468
  /**
1462
1469
  * An array of source position ticks.
1463
1470
  */
1464
- positionTicks?: PositionTickInfo[] | undefined;
1471
+ positionTicks?: PositionTickInfo[];
1465
1472
  }
1466
1473
 
1467
1474
  /**
@@ -1483,11 +1490,11 @@ declare module 'inspector' {
1483
1490
  /**
1484
1491
  * Ids of samples top nodes.
1485
1492
  */
1486
- samples?: number[] | undefined;
1493
+ samples?: number[];
1487
1494
  /**
1488
1495
  * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
1489
1496
  */
1490
- timeDeltas?: number[] | undefined;
1497
+ timeDeltas?: number[];
1491
1498
  }
1492
1499
 
1493
1500
  /**
@@ -1614,11 +1621,11 @@ declare module 'inspector' {
1614
1621
  /**
1615
1622
  * Collect accurate call counts beyond simple 'covered' or 'not covered'.
1616
1623
  */
1617
- callCount?: boolean | undefined;
1624
+ callCount?: boolean;
1618
1625
  /**
1619
1626
  * Collect block-based coverage.
1620
1627
  */
1621
- detailed?: boolean | undefined;
1628
+ detailed?: boolean;
1622
1629
  }
1623
1630
 
1624
1631
  interface StopReturnType {
@@ -1658,7 +1665,7 @@ declare module 'inspector' {
1658
1665
  /**
1659
1666
  * Profile title passed as an argument to console.profile().
1660
1667
  */
1661
- title?: string | undefined;
1668
+ title?: string;
1662
1669
  }
1663
1670
 
1664
1671
  interface ConsoleProfileFinishedEventDataType {
@@ -1671,7 +1678,7 @@ declare module 'inspector' {
1671
1678
  /**
1672
1679
  * Profile title passed as an argument to console.profile().
1673
1680
  */
1674
- title?: string | undefined;
1681
+ title?: string;
1675
1682
  }
1676
1683
  }
1677
1684
 
@@ -1707,21 +1714,21 @@ declare module 'inspector' {
1707
1714
  }
1708
1715
 
1709
1716
  interface StartTrackingHeapObjectsParameterType {
1710
- trackAllocations?: boolean | undefined;
1717
+ trackAllocations?: boolean;
1711
1718
  }
1712
1719
 
1713
1720
  interface StopTrackingHeapObjectsParameterType {
1714
1721
  /**
1715
1722
  * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
1716
1723
  */
1717
- reportProgress?: boolean | undefined;
1724
+ reportProgress?: boolean;
1718
1725
  }
1719
1726
 
1720
1727
  interface TakeHeapSnapshotParameterType {
1721
1728
  /**
1722
1729
  * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
1723
1730
  */
1724
- reportProgress?: boolean | undefined;
1731
+ reportProgress?: boolean;
1725
1732
  }
1726
1733
 
1727
1734
  interface GetObjectByHeapObjectIdParameterType {
@@ -1729,7 +1736,7 @@ declare module 'inspector' {
1729
1736
  /**
1730
1737
  * Symbolic group name that can be used to release multiple objects.
1731
1738
  */
1732
- objectGroup?: string | undefined;
1739
+ objectGroup?: string;
1733
1740
  }
1734
1741
 
1735
1742
  interface AddInspectedHeapObjectParameterType {
@@ -1750,7 +1757,7 @@ declare module 'inspector' {
1750
1757
  /**
1751
1758
  * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
1752
1759
  */
1753
- samplingInterval?: number | undefined;
1760
+ samplingInterval?: number;
1754
1761
  }
1755
1762
 
1756
1763
  interface GetObjectByHeapObjectIdReturnType {
@@ -1788,7 +1795,7 @@ declare module 'inspector' {
1788
1795
  interface ReportHeapSnapshotProgressEventDataType {
1789
1796
  done: number;
1790
1797
  total: number;
1791
- finished?: boolean | undefined;
1798
+ finished?: boolean;
1792
1799
  }
1793
1800
 
1794
1801
  interface LastSeenObjectIdEventDataType {
@@ -1809,7 +1816,7 @@ declare module 'inspector' {
1809
1816
  /**
1810
1817
  * Controls how the trace buffer stores data.
1811
1818
  */
1812
- recordMode?: string | undefined;
1819
+ recordMode?: string;
1813
1820
  /**
1814
1821
  * Included category filters.
1815
1822
  */
@@ -1910,17 +1917,11 @@ declare module 'inspector' {
1910
1917
 
1911
1918
  /**
1912
1919
  * Connects a session to the inspector back-end.
1920
+ * An exception will be thrown if there is already a connected session established either
1921
+ * through the API or by a front-end connected to the Inspector WebSocket port.
1913
1922
  */
1914
1923
  connect(): void;
1915
1924
 
1916
- /**
1917
- * Connects a session to the main thread inspector back-end.
1918
- * An exception will be thrown if this API was not called on a Worker
1919
- * thread.
1920
- * @since 12.11.0
1921
- */
1922
- connectToMainThread(): void;
1923
-
1924
1925
  /**
1925
1926
  * Immediately close the session. All pending message callbacks will be called with an error.
1926
1927
  * session.connect() will need to be called to be able to send messages again.
@@ -3045,7 +3046,3 @@ declare module 'inspector' {
3045
3046
  */
3046
3047
  function waitForDebugger(): void;
3047
3048
  }
3048
- declare module 'node:inspector' {
3049
- import EventEmitter = require('inspector');
3050
- export = EventEmitter;
3051
- }