@aligent/cdk-prerender-proxy 0.2.4 → 0.2.5-beta

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 (150) hide show
  1. package/lib/handlers/cache-control.ts +7 -20
  2. package/lib/handlers/error-response.ts +8 -51
  3. package/lib/handlers/node_modules/.package-lock.json +32 -3
  4. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/index.d.ts +6 -0
  5. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/index.js +14 -0
  6. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/cache-control.d.ts +3 -0
  7. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/cache-control.js +24 -0
  8. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/error-response.d.ts +3 -0
  9. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/error-response.js +50 -0
  10. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/prerender-check.d.ts +3 -0
  11. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/prerender-check.js +28 -0
  12. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/prerender.d.ts +3 -0
  13. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/prerender.js +49 -0
  14. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/redirect.d.ts +3 -0
  15. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/lib/redirect.js +33 -0
  16. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/package.json +27 -0
  17. package/lib/handlers/node_modules/@aligent/cdk-lambda-at-edge-handlers/tsconfig.json +3 -0
  18. package/lib/handlers/node_modules/@middy/core/LICENSE +21 -0
  19. package/lib/handlers/node_modules/@middy/core/README.md +65 -0
  20. package/lib/handlers/node_modules/@middy/core/index.cjs +207 -0
  21. package/lib/handlers/node_modules/@middy/core/index.d.ts +91 -0
  22. package/lib/handlers/node_modules/@middy/core/index.js +199 -0
  23. package/lib/handlers/node_modules/@middy/core/package.json +65 -0
  24. package/lib/handlers/node_modules/@types/node/README.md +4 -4
  25. package/lib/handlers/node_modules/@types/node/assert/strict.d.ts +5 -1
  26. package/lib/handlers/node_modules/@types/node/assert.d.ts +904 -67
  27. package/lib/handlers/node_modules/@types/node/async_hooks.d.ts +371 -96
  28. package/lib/handlers/node_modules/@types/node/buffer.d.ts +2199 -25
  29. package/lib/handlers/node_modules/@types/node/child_process.d.ts +1151 -308
  30. package/lib/handlers/node_modules/@types/node/cluster.d.ts +356 -208
  31. package/lib/handlers/node_modules/@types/node/console.d.ts +324 -45
  32. package/lib/handlers/node_modules/@types/node/constants.d.ts +8 -3
  33. package/lib/handlers/node_modules/@types/node/crypto.d.ts +3230 -846
  34. package/lib/handlers/node_modules/@types/node/dgram.d.ts +478 -74
  35. package/lib/handlers/node_modules/@types/node/diagnostics_channel.d.ts +153 -0
  36. package/lib/handlers/node_modules/@types/node/dns/promises.d.ts +308 -35
  37. package/lib/handlers/node_modules/@types/node/dns.d.ts +444 -107
  38. package/lib/handlers/node_modules/@types/node/dom-events.d.ts +126 -0
  39. package/lib/handlers/node_modules/@types/node/domain.d.ts +162 -16
  40. package/lib/handlers/node_modules/@types/node/events.d.ts +624 -39
  41. package/lib/handlers/node_modules/@types/node/fs/promises.d.ts +911 -365
  42. package/lib/handlers/node_modules/@types/node/fs.d.ts +2611 -978
  43. package/lib/handlers/node_modules/@types/node/globals.d.ts +66 -421
  44. package/lib/handlers/node_modules/@types/node/globals.global.d.ts +1 -1
  45. package/lib/handlers/node_modules/@types/node/http.d.ts +1416 -199
  46. package/lib/handlers/node_modules/@types/node/http2.d.ts +1688 -530
  47. package/lib/handlers/node_modules/@types/node/https.d.ts +532 -26
  48. package/lib/handlers/node_modules/@types/node/index.d.ts +92 -16
  49. package/lib/handlers/node_modules/@types/node/inspector.d.ts +511 -811
  50. package/lib/handlers/node_modules/@types/node/module.d.ts +75 -13
  51. package/lib/handlers/node_modules/@types/node/net.d.ts +710 -167
  52. package/lib/handlers/node_modules/@types/node/os.d.ts +252 -25
  53. package/lib/handlers/node_modules/@types/node/package.json +30 -25
  54. package/lib/handlers/node_modules/@types/node/path.d.ts +59 -31
  55. package/lib/handlers/node_modules/@types/node/perf_hooks.d.ts +420 -105
  56. package/lib/handlers/node_modules/@types/node/process.d.ts +1249 -228
  57. package/lib/handlers/node_modules/@types/node/punycode.d.ts +67 -25
  58. package/lib/handlers/node_modules/@types/node/querystring.d.ts +113 -10
  59. package/lib/handlers/node_modules/@types/node/readline/promises.d.ts +143 -0
  60. package/lib/handlers/node_modules/@types/node/readline.d.ts +570 -109
  61. package/lib/handlers/node_modules/@types/node/repl.d.ts +154 -125
  62. package/lib/handlers/node_modules/@types/node/stream/consumers.d.ts +12 -0
  63. package/lib/handlers/node_modules/@types/node/stream/promises.d.ts +18 -43
  64. package/lib/handlers/node_modules/@types/node/stream/web.d.ts +330 -0
  65. package/lib/handlers/node_modules/@types/node/stream.d.ts +1117 -248
  66. package/lib/handlers/node_modules/@types/node/string_decoder.d.ts +60 -0
  67. package/lib/handlers/node_modules/@types/node/test.d.ts +446 -0
  68. package/lib/handlers/node_modules/@types/node/timers/promises.d.ts +81 -9
  69. package/lib/handlers/node_modules/@types/node/timers.d.ts +84 -17
  70. package/lib/handlers/node_modules/@types/node/tls.d.ts +510 -275
  71. package/lib/handlers/node_modules/@types/node/trace_events.d.ts +120 -10
  72. package/lib/handlers/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  73. package/lib/handlers/node_modules/@types/node/ts4.8/assert.d.ts +961 -0
  74. package/lib/handlers/node_modules/@types/node/ts4.8/async_hooks.d.ts +501 -0
  75. package/lib/handlers/node_modules/@types/node/ts4.8/buffer.d.ts +2259 -0
  76. package/lib/handlers/node_modules/@types/node/ts4.8/child_process.d.ts +1369 -0
  77. package/lib/handlers/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
  78. package/lib/handlers/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  79. package/lib/handlers/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  80. package/lib/handlers/node_modules/@types/node/ts4.8/crypto.d.ts +3964 -0
  81. package/lib/handlers/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  82. package/lib/handlers/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +153 -0
  83. package/lib/handlers/node_modules/@types/node/ts4.8/dns/promises.d.ts +370 -0
  84. package/lib/handlers/node_modules/@types/node/ts4.8/dns.d.ts +659 -0
  85. package/lib/handlers/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  86. package/lib/handlers/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  87. package/lib/handlers/node_modules/@types/node/ts4.8/events.d.ts +678 -0
  88. package/lib/handlers/node_modules/@types/node/ts4.8/fs/promises.d.ts +1138 -0
  89. package/lib/handlers/node_modules/@types/node/ts4.8/fs.d.ts +3872 -0
  90. package/lib/handlers/node_modules/@types/node/ts4.8/globals.d.ts +294 -0
  91. package/lib/handlers/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  92. package/lib/handlers/node_modules/@types/node/ts4.8/http.d.ts +1651 -0
  93. package/lib/handlers/node_modules/@types/node/ts4.8/http2.d.ts +2134 -0
  94. package/lib/handlers/node_modules/@types/node/ts4.8/https.d.ts +542 -0
  95. package/lib/handlers/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  96. package/lib/handlers/node_modules/@types/node/ts4.8/inspector.d.ts +2741 -0
  97. package/lib/handlers/node_modules/@types/node/ts4.8/module.d.ts +114 -0
  98. package/lib/handlers/node_modules/@types/node/ts4.8/net.d.ts +869 -0
  99. package/lib/handlers/node_modules/@types/node/ts4.8/os.d.ts +466 -0
  100. package/lib/handlers/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  101. package/lib/handlers/node_modules/@types/node/ts4.8/perf_hooks.d.ts +625 -0
  102. package/lib/handlers/node_modules/@types/node/ts4.8/process.d.ts +1482 -0
  103. package/lib/handlers/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  104. package/lib/handlers/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  105. package/lib/handlers/node_modules/@types/node/ts4.8/readline/promises.d.ts +143 -0
  106. package/lib/handlers/node_modules/@types/node/ts4.8/readline.d.ts +653 -0
  107. package/lib/handlers/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  108. package/lib/handlers/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  109. package/lib/handlers/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  110. package/lib/handlers/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  111. package/lib/handlers/node_modules/@types/node/ts4.8/stream.d.ts +1340 -0
  112. package/lib/handlers/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  113. package/lib/handlers/node_modules/@types/node/ts4.8/test.d.ts +446 -0
  114. package/lib/handlers/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  115. package/lib/handlers/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
  116. package/lib/handlers/node_modules/@types/node/ts4.8/tls.d.ts +1028 -0
  117. package/lib/handlers/node_modules/@types/node/ts4.8/trace_events.d.ts +171 -0
  118. package/lib/handlers/node_modules/@types/node/ts4.8/tty.d.ts +206 -0
  119. package/lib/handlers/node_modules/@types/node/ts4.8/url.d.ts +897 -0
  120. package/lib/handlers/node_modules/@types/node/ts4.8/util.d.ts +1926 -0
  121. package/lib/handlers/node_modules/@types/node/ts4.8/v8.d.ts +396 -0
  122. package/lib/handlers/node_modules/@types/node/ts4.8/vm.d.ts +509 -0
  123. package/lib/handlers/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
  124. package/lib/handlers/node_modules/@types/node/ts4.8/worker_threads.d.ts +689 -0
  125. package/lib/handlers/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  126. package/lib/handlers/node_modules/@types/node/tty.d.ts +163 -23
  127. package/lib/handlers/node_modules/@types/node/url.d.ts +825 -44
  128. package/lib/handlers/node_modules/@types/node/util.d.ts +1842 -72
  129. package/lib/handlers/node_modules/@types/node/v8.d.ts +276 -78
  130. package/lib/handlers/node_modules/@types/node/vm.d.ts +410 -53
  131. package/lib/handlers/node_modules/@types/node/wasi.d.ts +102 -30
  132. package/lib/handlers/node_modules/@types/node/worker_threads.d.ts +559 -152
  133. package/lib/handlers/node_modules/@types/node/zlib.d.ts +234 -78
  134. package/lib/handlers/node_modules/esbuild/README.md +3 -0
  135. package/lib/handlers/node_modules/esbuild/bin/esbuild +0 -0
  136. package/lib/handlers/node_modules/esbuild/install.js +256 -0
  137. package/lib/handlers/node_modules/esbuild/lib/main.d.ts +397 -0
  138. package/lib/handlers/node_modules/esbuild/lib/main.js +1939 -0
  139. package/lib/handlers/node_modules/esbuild/package.json +15 -0
  140. package/lib/handlers/package-lock.json +62 -6
  141. package/lib/handlers/package.json +6 -1
  142. package/lib/handlers/prerender-check.ts +8 -27
  143. package/lib/handlers/prerender.ts +8 -43
  144. package/package.json +1 -1
  145. package/lib/handlers/node_modules/@types/node/base.d.ts +0 -19
  146. package/lib/handlers/node_modules/@types/node/diagnostic_channel.d.ts +0 -34
  147. package/lib/handlers/node_modules/@types/node/ts3.6/assert.d.ts +0 -98
  148. package/lib/handlers/node_modules/@types/node/ts3.6/base.d.ts +0 -68
  149. package/lib/handlers/node_modules/@types/node/ts3.6/index.d.ts +0 -7
  150. package/lib/handlers/node_modules/@types/node/util/types.d.ts +0 -53
@@ -1,4 +1,4 @@
1
- // tslint:disable-next-line:dt-header
1
+ // eslint-disable-next-line dt-header
2
2
  // Type definitions for inspector
3
3
 
4
4
  // These definitions are auto-generated.
@@ -8,16 +8,21 @@
8
8
  // tslint:disable:max-line-length
9
9
 
10
10
  /**
11
- * The inspector module provides an API for interacting with the V8 inspector.
11
+ * The `inspector` module provides an API for interacting with the V8 inspector.
12
+ *
13
+ * It can be accessed using:
14
+ *
15
+ * ```js
16
+ * const inspector = require('inspector');
17
+ * ```
18
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/inspector.js)
12
19
  */
13
20
  declare module 'inspector' {
14
- import EventEmitter = require('events');
15
-
21
+ import EventEmitter = require('node:events');
16
22
  interface InspectorNotification<T> {
17
23
  method: string;
18
24
  params: T;
19
25
  }
20
-
21
26
  namespace Schema {
22
27
  /**
23
28
  * Description of the protocol domain.
@@ -32,7 +37,6 @@ declare module 'inspector' {
32
37
  */
33
38
  version: string;
34
39
  }
35
-
36
40
  interface GetDomainsReturnType {
37
41
  /**
38
42
  * List of supported domains.
@@ -40,23 +44,19 @@ declare module 'inspector' {
40
44
  domains: Domain[];
41
45
  }
42
46
  }
43
-
44
47
  namespace Runtime {
45
48
  /**
46
49
  * Unique script identifier.
47
50
  */
48
51
  type ScriptId = string;
49
-
50
52
  /**
51
53
  * Unique object identifier.
52
54
  */
53
55
  type RemoteObjectId = string;
54
-
55
56
  /**
56
57
  * Primitive value which cannot be JSON-stringified.
57
58
  */
58
59
  type UnserializableValue = string;
59
-
60
60
  /**
61
61
  * Mirror object referencing original JavaScript object.
62
62
  */
@@ -68,11 +68,11 @@ declare module 'inspector' {
68
68
  /**
69
69
  * Object subtype hint. Specified for <code>object</code> type values only.
70
70
  */
71
- subtype?: string;
71
+ subtype?: string | undefined;
72
72
  /**
73
73
  * Object class (constructor) name. Specified for <code>object</code> type values only.
74
74
  */
75
- className?: string;
75
+ className?: string | undefined;
76
76
  /**
77
77
  * Remote object value in case of primitive values or JSON values (if it was requested).
78
78
  */
@@ -80,26 +80,25 @@ declare module 'inspector' {
80
80
  /**
81
81
  * Primitive value which can not be JSON-stringified does not have <code>value</code>, but gets this property.
82
82
  */
83
- unserializableValue?: UnserializableValue;
83
+ unserializableValue?: UnserializableValue | undefined;
84
84
  /**
85
85
  * String representation of the object.
86
86
  */
87
- description?: string;
87
+ description?: string | undefined;
88
88
  /**
89
89
  * Unique object identifier (for non-primitive values).
90
90
  */
91
- objectId?: RemoteObjectId;
91
+ objectId?: RemoteObjectId | undefined;
92
92
  /**
93
93
  * Preview containing abbreviated property values. Specified for <code>object</code> type values only.
94
94
  * @experimental
95
95
  */
96
- preview?: ObjectPreview;
96
+ preview?: ObjectPreview | undefined;
97
97
  /**
98
98
  * @experimental
99
99
  */
100
- customPreview?: CustomPreview;
100
+ customPreview?: CustomPreview | undefined;
101
101
  }
102
-
103
102
  /**
104
103
  * @experimental
105
104
  */
@@ -108,9 +107,8 @@ declare module 'inspector' {
108
107
  hasBody: boolean;
109
108
  formatterObjectId: RemoteObjectId;
110
109
  bindRemoteObjectFunctionId: RemoteObjectId;
111
- configObjectId?: RemoteObjectId;
110
+ configObjectId?: RemoteObjectId | undefined;
112
111
  }
113
-
114
112
  /**
115
113
  * Object containing abbreviated remote object value.
116
114
  * @experimental
@@ -123,11 +121,11 @@ declare module 'inspector' {
123
121
  /**
124
122
  * Object subtype hint. Specified for <code>object</code> type values only.
125
123
  */
126
- subtype?: string;
124
+ subtype?: string | undefined;
127
125
  /**
128
126
  * String representation of the object.
129
127
  */
130
- description?: string;
128
+ description?: string | undefined;
131
129
  /**
132
130
  * True iff some of the properties or entries of the original object did not fit.
133
131
  */
@@ -139,9 +137,8 @@ declare module 'inspector' {
139
137
  /**
140
138
  * List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.
141
139
  */
142
- entries?: EntryPreview[];
140
+ entries?: EntryPreview[] | undefined;
143
141
  }
144
-
145
142
  /**
146
143
  * @experimental
147
144
  */
@@ -157,17 +154,16 @@ declare module 'inspector' {
157
154
  /**
158
155
  * User-friendly property value string.
159
156
  */
160
- value?: string;
157
+ value?: string | undefined;
161
158
  /**
162
159
  * Nested value preview.
163
160
  */
164
- valuePreview?: ObjectPreview;
161
+ valuePreview?: ObjectPreview | undefined;
165
162
  /**
166
163
  * Object subtype hint. Specified for <code>object</code> type values only.
167
164
  */
168
- subtype?: string;
165
+ subtype?: string | undefined;
169
166
  }
170
-
171
167
  /**
172
168
  * @experimental
173
169
  */
@@ -175,13 +171,12 @@ declare module 'inspector' {
175
171
  /**
176
172
  * Preview of the key. Specified for map-like collection entries.
177
173
  */
178
- key?: ObjectPreview;
174
+ key?: ObjectPreview | undefined;
179
175
  /**
180
176
  * Preview of the value.
181
177
  */
182
178
  value: ObjectPreview;
183
179
  }
184
-
185
180
  /**
186
181
  * Object property descriptor.
187
182
  */
@@ -193,19 +188,19 @@ declare module 'inspector' {
193
188
  /**
194
189
  * The value associated with the property.
195
190
  */
196
- value?: RemoteObject;
191
+ value?: RemoteObject | undefined;
197
192
  /**
198
193
  * True if the value associated with the property may be changed (data descriptors only).
199
194
  */
200
- writable?: boolean;
195
+ writable?: boolean | undefined;
201
196
  /**
202
197
  * A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).
203
198
  */
204
- get?: RemoteObject;
199
+ get?: RemoteObject | undefined;
205
200
  /**
206
201
  * A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).
207
202
  */
208
- set?: RemoteObject;
203
+ set?: RemoteObject | undefined;
209
204
  /**
210
205
  * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
211
206
  */
@@ -217,17 +212,16 @@ declare module 'inspector' {
217
212
  /**
218
213
  * True if the result was thrown during the evaluation.
219
214
  */
220
- wasThrown?: boolean;
215
+ wasThrown?: boolean | undefined;
221
216
  /**
222
217
  * True if the property is owned for the object.
223
218
  */
224
- isOwn?: boolean;
219
+ isOwn?: boolean | undefined;
225
220
  /**
226
221
  * Property symbol object, if the property is of the <code>symbol</code> type.
227
222
  */
228
- symbol?: RemoteObject;
223
+ symbol?: RemoteObject | undefined;
229
224
  }
230
-
231
225
  /**
232
226
  * Object internal property descriptor. This property isn't normally visible in JavaScript code.
233
227
  */
@@ -239,9 +233,8 @@ declare module 'inspector' {
239
233
  /**
240
234
  * The value associated with the property.
241
235
  */
242
- value?: RemoteObject;
236
+ value?: RemoteObject | undefined;
243
237
  }
244
-
245
238
  /**
246
239
  * Represents function call argument. Either remote object id <code>objectId</code>, primitive <code>value</code>, unserializable primitive value or neither of (for undefined) them should be specified.
247
240
  */
@@ -253,18 +246,16 @@ declare module 'inspector' {
253
246
  /**
254
247
  * Primitive value which can not be JSON-stringified.
255
248
  */
256
- unserializableValue?: UnserializableValue;
249
+ unserializableValue?: UnserializableValue | undefined;
257
250
  /**
258
251
  * Remote object handle.
259
252
  */
260
- objectId?: RemoteObjectId;
253
+ objectId?: RemoteObjectId | undefined;
261
254
  }
262
-
263
255
  /**
264
256
  * Id of an execution context.
265
257
  */
266
258
  type ExecutionContextId = number;
267
-
268
259
  /**
269
260
  * Description of an isolated world.
270
261
  */
@@ -284,9 +275,8 @@ declare module 'inspector' {
284
275
  /**
285
276
  * Embedder-specific auxiliary data.
286
277
  */
287
- auxData?: {};
278
+ auxData?: {} | undefined;
288
279
  }
289
-
290
280
  /**
291
281
  * Detailed information about exception (or error) that was thrown during script compilation or execution.
292
282
  */
@@ -310,30 +300,28 @@ declare module 'inspector' {
310
300
  /**
311
301
  * Script ID of the exception location.
312
302
  */
313
- scriptId?: ScriptId;
303
+ scriptId?: ScriptId | undefined;
314
304
  /**
315
305
  * URL of the exception location, to be used when the script was not reported.
316
306
  */
317
- url?: string;
307
+ url?: string | undefined;
318
308
  /**
319
309
  * JavaScript stack trace if available.
320
310
  */
321
- stackTrace?: StackTrace;
311
+ stackTrace?: StackTrace | undefined;
322
312
  /**
323
313
  * Exception object if available.
324
314
  */
325
- exception?: RemoteObject;
315
+ exception?: RemoteObject | undefined;
326
316
  /**
327
317
  * Identifier of the context where exception happened.
328
318
  */
329
- executionContextId?: ExecutionContextId;
319
+ executionContextId?: ExecutionContextId | undefined;
330
320
  }
331
-
332
321
  /**
333
322
  * Number of milliseconds since epoch.
334
323
  */
335
324
  type Timestamp = number;
336
-
337
325
  /**
338
326
  * Stack entry for runtime errors and assertions.
339
327
  */
@@ -359,7 +347,6 @@ declare module 'inspector' {
359
347
  */
360
348
  columnNumber: number;
361
349
  }
362
-
363
350
  /**
364
351
  * Call frames for assertions or error messages.
365
352
  */
@@ -367,7 +354,7 @@ declare module 'inspector' {
367
354
  /**
368
355
  * String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
369
356
  */
370
- description?: string;
357
+ description?: string | undefined;
371
358
  /**
372
359
  * JavaScript function name.
373
360
  */
@@ -375,29 +362,26 @@ declare module 'inspector' {
375
362
  /**
376
363
  * Asynchronous JavaScript stack trace that preceded this stack, if available.
377
364
  */
378
- parent?: StackTrace;
365
+ parent?: StackTrace | undefined;
379
366
  /**
380
367
  * Asynchronous JavaScript stack trace that preceded this stack, if available.
381
368
  * @experimental
382
369
  */
383
- parentId?: StackTraceId;
370
+ parentId?: StackTraceId | undefined;
384
371
  }
385
-
386
372
  /**
387
373
  * Unique identifier of current debugger.
388
374
  * @experimental
389
375
  */
390
376
  type UniqueDebuggerId = string;
391
-
392
377
  /**
393
378
  * If <code>debuggerId</code> is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See <code>Runtime.StackTrace</code> and <code>Debugger.paused</code> for usages.
394
379
  * @experimental
395
380
  */
396
381
  interface StackTraceId {
397
382
  id: string;
398
- debuggerId?: UniqueDebuggerId;
383
+ debuggerId?: UniqueDebuggerId | undefined;
399
384
  }
400
-
401
385
  interface EvaluateParameterType {
402
386
  /**
403
387
  * Expression to evaluate.
@@ -406,38 +390,37 @@ declare module 'inspector' {
406
390
  /**
407
391
  * Symbolic group name that can be used to release multiple objects.
408
392
  */
409
- objectGroup?: string;
393
+ objectGroup?: string | undefined;
410
394
  /**
411
395
  * Determines whether Command Line API should be available during the evaluation.
412
396
  */
413
- includeCommandLineAPI?: boolean;
397
+ includeCommandLineAPI?: boolean | undefined;
414
398
  /**
415
399
  * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
416
400
  */
417
- silent?: boolean;
401
+ silent?: boolean | undefined;
418
402
  /**
419
403
  * 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
404
  */
421
- contextId?: ExecutionContextId;
405
+ contextId?: ExecutionContextId | undefined;
422
406
  /**
423
407
  * Whether the result is expected to be a JSON object that should be sent by value.
424
408
  */
425
- returnByValue?: boolean;
409
+ returnByValue?: boolean | undefined;
426
410
  /**
427
411
  * Whether preview should be generated for the result.
428
412
  * @experimental
429
413
  */
430
- generatePreview?: boolean;
414
+ generatePreview?: boolean | undefined;
431
415
  /**
432
416
  * Whether execution should be treated as initiated by user in the UI.
433
417
  */
434
- userGesture?: boolean;
418
+ userGesture?: boolean | undefined;
435
419
  /**
436
420
  * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
437
421
  */
438
- awaitPromise?: boolean;
422
+ awaitPromise?: boolean | undefined;
439
423
  }
440
-
441
424
  interface AwaitPromiseParameterType {
442
425
  /**
443
426
  * Identifier of the promise.
@@ -446,13 +429,12 @@ declare module 'inspector' {
446
429
  /**
447
430
  * Whether the result is expected to be a JSON object that should be sent by value.
448
431
  */
449
- returnByValue?: boolean;
432
+ returnByValue?: boolean | undefined;
450
433
  /**
451
434
  * Whether preview should be generated for the result.
452
435
  */
453
- generatePreview?: boolean;
436
+ generatePreview?: boolean | undefined;
454
437
  }
455
-
456
438
  interface CallFunctionOnParameterType {
457
439
  /**
458
440
  * Declaration of the function to call.
@@ -461,42 +443,41 @@ declare module 'inspector' {
461
443
  /**
462
444
  * Identifier of the object to call function on. Either objectId or executionContextId should be specified.
463
445
  */
464
- objectId?: RemoteObjectId;
446
+ objectId?: RemoteObjectId | undefined;
465
447
  /**
466
448
  * Call arguments. All call arguments must belong to the same JavaScript world as the target object.
467
449
  */
468
- arguments?: CallArgument[];
450
+ arguments?: CallArgument[] | undefined;
469
451
  /**
470
452
  * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
471
453
  */
472
- silent?: boolean;
454
+ silent?: boolean | undefined;
473
455
  /**
474
456
  * Whether the result is expected to be a JSON object which should be sent by value.
475
457
  */
476
- returnByValue?: boolean;
458
+ returnByValue?: boolean | undefined;
477
459
  /**
478
460
  * Whether preview should be generated for the result.
479
461
  * @experimental
480
462
  */
481
- generatePreview?: boolean;
463
+ generatePreview?: boolean | undefined;
482
464
  /**
483
465
  * Whether execution should be treated as initiated by user in the UI.
484
466
  */
485
- userGesture?: boolean;
467
+ userGesture?: boolean | undefined;
486
468
  /**
487
469
  * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
488
470
  */
489
- awaitPromise?: boolean;
471
+ awaitPromise?: boolean | undefined;
490
472
  /**
491
473
  * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
492
474
  */
493
- executionContextId?: ExecutionContextId;
475
+ executionContextId?: ExecutionContextId | undefined;
494
476
  /**
495
477
  * 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
478
  */
497
- objectGroup?: string;
479
+ objectGroup?: string | undefined;
498
480
  }
499
-
500
481
  interface GetPropertiesParameterType {
501
482
  /**
502
483
  * Identifier of the object to return properties for.
@@ -505,37 +486,33 @@ declare module 'inspector' {
505
486
  /**
506
487
  * If true, returns properties belonging only to the element itself, not to its prototype chain.
507
488
  */
508
- ownProperties?: boolean;
489
+ ownProperties?: boolean | undefined;
509
490
  /**
510
491
  * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
511
492
  * @experimental
512
493
  */
513
- accessorPropertiesOnly?: boolean;
494
+ accessorPropertiesOnly?: boolean | undefined;
514
495
  /**
515
496
  * Whether preview should be generated for the results.
516
497
  * @experimental
517
498
  */
518
- generatePreview?: boolean;
499
+ generatePreview?: boolean | undefined;
519
500
  }
520
-
521
501
  interface ReleaseObjectParameterType {
522
502
  /**
523
503
  * Identifier of the object to release.
524
504
  */
525
505
  objectId: RemoteObjectId;
526
506
  }
527
-
528
507
  interface ReleaseObjectGroupParameterType {
529
508
  /**
530
509
  * Symbolic object group name.
531
510
  */
532
511
  objectGroup: string;
533
512
  }
534
-
535
513
  interface SetCustomObjectFormatterEnabledParameterType {
536
514
  enabled: boolean;
537
515
  }
538
-
539
516
  interface CompileScriptParameterType {
540
517
  /**
541
518
  * Expression to compile.
@@ -552,9 +529,8 @@ declare module 'inspector' {
552
529
  /**
553
530
  * 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
531
  */
555
- executionContextId?: ExecutionContextId;
532
+ executionContextId?: ExecutionContextId | undefined;
556
533
  }
557
-
558
534
  interface RunScriptParameterType {
559
535
  /**
560
536
  * Id of the script to run.
@@ -563,47 +539,44 @@ declare module 'inspector' {
563
539
  /**
564
540
  * 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
541
  */
566
- executionContextId?: ExecutionContextId;
542
+ executionContextId?: ExecutionContextId | undefined;
567
543
  /**
568
544
  * Symbolic group name that can be used to release multiple objects.
569
545
  */
570
- objectGroup?: string;
546
+ objectGroup?: string | undefined;
571
547
  /**
572
548
  * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
573
549
  */
574
- silent?: boolean;
550
+ silent?: boolean | undefined;
575
551
  /**
576
552
  * Determines whether Command Line API should be available during the evaluation.
577
553
  */
578
- includeCommandLineAPI?: boolean;
554
+ includeCommandLineAPI?: boolean | undefined;
579
555
  /**
580
556
  * Whether the result is expected to be a JSON object which should be sent by value.
581
557
  */
582
- returnByValue?: boolean;
558
+ returnByValue?: boolean | undefined;
583
559
  /**
584
560
  * Whether preview should be generated for the result.
585
561
  */
586
- generatePreview?: boolean;
562
+ generatePreview?: boolean | undefined;
587
563
  /**
588
564
  * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
589
565
  */
590
- awaitPromise?: boolean;
566
+ awaitPromise?: boolean | undefined;
591
567
  }
592
-
593
568
  interface QueryObjectsParameterType {
594
569
  /**
595
570
  * Identifier of the prototype to return objects for.
596
571
  */
597
572
  prototypeObjectId: RemoteObjectId;
598
573
  }
599
-
600
574
  interface GlobalLexicalScopeNamesParameterType {
601
575
  /**
602
576
  * Specifies in which execution context to lookup global scope variables.
603
577
  */
604
- executionContextId?: ExecutionContextId;
578
+ executionContextId?: ExecutionContextId | undefined;
605
579
  }
606
-
607
580
  interface EvaluateReturnType {
608
581
  /**
609
582
  * Evaluation result.
@@ -612,9 +585,8 @@ declare module 'inspector' {
612
585
  /**
613
586
  * Exception details.
614
587
  */
615
- exceptionDetails?: ExceptionDetails;
588
+ exceptionDetails?: ExceptionDetails | undefined;
616
589
  }
617
-
618
590
  interface AwaitPromiseReturnType {
619
591
  /**
620
592
  * Promise result. Will contain rejected value if promise was rejected.
@@ -623,9 +595,8 @@ declare module 'inspector' {
623
595
  /**
624
596
  * Exception details if stack strace is available.
625
597
  */
626
- exceptionDetails?: ExceptionDetails;
598
+ exceptionDetails?: ExceptionDetails | undefined;
627
599
  }
628
-
629
600
  interface CallFunctionOnReturnType {
630
601
  /**
631
602
  * Call result.
@@ -634,9 +605,8 @@ declare module 'inspector' {
634
605
  /**
635
606
  * Exception details.
636
607
  */
637
- exceptionDetails?: ExceptionDetails;
608
+ exceptionDetails?: ExceptionDetails | undefined;
638
609
  }
639
-
640
610
  interface GetPropertiesReturnType {
641
611
  /**
642
612
  * Object properties.
@@ -645,24 +615,22 @@ declare module 'inspector' {
645
615
  /**
646
616
  * Internal object properties (only of the element itself).
647
617
  */
648
- internalProperties?: InternalPropertyDescriptor[];
618
+ internalProperties?: InternalPropertyDescriptor[] | undefined;
649
619
  /**
650
620
  * Exception details.
651
621
  */
652
- exceptionDetails?: ExceptionDetails;
622
+ exceptionDetails?: ExceptionDetails | undefined;
653
623
  }
654
-
655
624
  interface CompileScriptReturnType {
656
625
  /**
657
626
  * Id of the script.
658
627
  */
659
- scriptId?: ScriptId;
628
+ scriptId?: ScriptId | undefined;
660
629
  /**
661
630
  * Exception details.
662
631
  */
663
- exceptionDetails?: ExceptionDetails;
632
+ exceptionDetails?: ExceptionDetails | undefined;
664
633
  }
665
-
666
634
  interface RunScriptReturnType {
667
635
  /**
668
636
  * Run result.
@@ -671,34 +639,29 @@ declare module 'inspector' {
671
639
  /**
672
640
  * Exception details.
673
641
  */
674
- exceptionDetails?: ExceptionDetails;
642
+ exceptionDetails?: ExceptionDetails | undefined;
675
643
  }
676
-
677
644
  interface QueryObjectsReturnType {
678
645
  /**
679
646
  * Array with objects.
680
647
  */
681
648
  objects: RemoteObject;
682
649
  }
683
-
684
650
  interface GlobalLexicalScopeNamesReturnType {
685
651
  names: string[];
686
652
  }
687
-
688
653
  interface ExecutionContextCreatedEventDataType {
689
654
  /**
690
655
  * A newly created execution context.
691
656
  */
692
657
  context: ExecutionContextDescription;
693
658
  }
694
-
695
659
  interface ExecutionContextDestroyedEventDataType {
696
660
  /**
697
661
  * Id of the destroyed context
698
662
  */
699
663
  executionContextId: ExecutionContextId;
700
664
  }
701
-
702
665
  interface ExceptionThrownEventDataType {
703
666
  /**
704
667
  * Timestamp of the exception.
@@ -706,7 +669,6 @@ declare module 'inspector' {
706
669
  timestamp: Timestamp;
707
670
  exceptionDetails: ExceptionDetails;
708
671
  }
709
-
710
672
  interface ExceptionRevokedEventDataType {
711
673
  /**
712
674
  * Reason describing why exception was revoked.
@@ -717,7 +679,6 @@ declare module 'inspector' {
717
679
  */
718
680
  exceptionId: number;
719
681
  }
720
-
721
682
  interface ConsoleAPICalledEventDataType {
722
683
  /**
723
684
  * Type of the call.
@@ -738,31 +699,27 @@ declare module 'inspector' {
738
699
  /**
739
700
  * Stack trace captured when the call was made.
740
701
  */
741
- stackTrace?: StackTrace;
702
+ stackTrace?: StackTrace | undefined;
742
703
  /**
743
704
  * 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
705
  * @experimental
745
706
  */
746
- context?: string;
707
+ context?: string | undefined;
747
708
  }
748
-
749
709
  interface InspectRequestedEventDataType {
750
710
  object: RemoteObject;
751
711
  hints: {};
752
712
  }
753
713
  }
754
-
755
714
  namespace Debugger {
756
715
  /**
757
716
  * Breakpoint identifier.
758
717
  */
759
718
  type BreakpointId = string;
760
-
761
719
  /**
762
720
  * Call frame identifier.
763
721
  */
764
722
  type CallFrameId = string;
765
-
766
723
  /**
767
724
  * Location in the source code.
768
725
  */
@@ -778,9 +735,8 @@ declare module 'inspector' {
778
735
  /**
779
736
  * Column number in the script (0-based).
780
737
  */
781
- columnNumber?: number;
738
+ columnNumber?: number | undefined;
782
739
  }
783
-
784
740
  /**
785
741
  * Location in the source code.
786
742
  * @experimental
@@ -789,7 +745,6 @@ declare module 'inspector' {
789
745
  lineNumber: number;
790
746
  columnNumber: number;
791
747
  }
792
-
793
748
  /**
794
749
  * JavaScript call frame. Array of call frames form the call stack.
795
750
  */
@@ -805,7 +760,7 @@ declare module 'inspector' {
805
760
  /**
806
761
  * Location in the source code.
807
762
  */
808
- functionLocation?: Location;
763
+ functionLocation?: Location | undefined;
809
764
  /**
810
765
  * Location in the source code.
811
766
  */
@@ -825,9 +780,8 @@ declare module 'inspector' {
825
780
  /**
826
781
  * The value being returned, if the function is at return point.
827
782
  */
828
- returnValue?: Runtime.RemoteObject;
783
+ returnValue?: Runtime.RemoteObject | undefined;
829
784
  }
830
-
831
785
  /**
832
786
  * Scope description.
833
787
  */
@@ -840,17 +794,16 @@ declare module 'inspector' {
840
794
  * 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
795
  */
842
796
  object: Runtime.RemoteObject;
843
- name?: string;
797
+ name?: string | undefined;
844
798
  /**
845
799
  * Location in the source code where scope starts
846
800
  */
847
- startLocation?: Location;
801
+ startLocation?: Location | undefined;
848
802
  /**
849
803
  * Location in the source code where scope ends
850
804
  */
851
- endLocation?: Location;
805
+ endLocation?: Location | undefined;
852
806
  }
853
-
854
807
  /**
855
808
  * Search match for resource.
856
809
  */
@@ -864,7 +817,6 @@ declare module 'inspector' {
864
817
  */
865
818
  lineContent: string;
866
819
  }
867
-
868
820
  interface BreakLocation {
869
821
  /**
870
822
  * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
@@ -877,24 +829,21 @@ declare module 'inspector' {
877
829
  /**
878
830
  * Column number in the script (0-based).
879
831
  */
880
- columnNumber?: number;
881
- type?: string;
832
+ columnNumber?: number | undefined;
833
+ type?: string | undefined;
882
834
  }
883
-
884
835
  interface SetBreakpointsActiveParameterType {
885
836
  /**
886
837
  * New value for breakpoints active state.
887
838
  */
888
839
  active: boolean;
889
840
  }
890
-
891
841
  interface SetSkipAllPausesParameterType {
892
842
  /**
893
843
  * New value for skip pauses state.
894
844
  */
895
845
  skip: boolean;
896
846
  }
897
-
898
847
  interface SetBreakpointByUrlParameterType {
899
848
  /**
900
849
  * Line number to set breakpoint at.
@@ -903,25 +852,24 @@ declare module 'inspector' {
903
852
  /**
904
853
  * URL of the resources to set breakpoint on.
905
854
  */
906
- url?: string;
855
+ url?: string | undefined;
907
856
  /**
908
857
  * Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.
909
858
  */
910
- urlRegex?: string;
859
+ urlRegex?: string | undefined;
911
860
  /**
912
861
  * Script hash of the resources to set breakpoint on.
913
862
  */
914
- scriptHash?: string;
863
+ scriptHash?: string | undefined;
915
864
  /**
916
865
  * Offset in the line to set breakpoint at.
917
866
  */
918
- columnNumber?: number;
867
+ columnNumber?: number | undefined;
919
868
  /**
920
869
  * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
921
870
  */
922
- condition?: string;
871
+ condition?: string | undefined;
923
872
  }
924
-
925
873
  interface SetBreakpointParameterType {
926
874
  /**
927
875
  * Location to set breakpoint in.
@@ -930,13 +878,11 @@ declare module 'inspector' {
930
878
  /**
931
879
  * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
932
880
  */
933
- condition?: string;
881
+ condition?: string | undefined;
934
882
  }
935
-
936
883
  interface RemoveBreakpointParameterType {
937
884
  breakpointId: BreakpointId;
938
885
  }
939
-
940
886
  interface GetPossibleBreakpointsParameterType {
941
887
  /**
942
888
  * Start of range to search possible breakpoint locations in.
@@ -945,40 +891,35 @@ declare module 'inspector' {
945
891
  /**
946
892
  * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
947
893
  */
948
- end?: Location;
894
+ end?: Location | undefined;
949
895
  /**
950
896
  * Only consider locations which are in the same (non-nested) function as start.
951
897
  */
952
- restrictToFunction?: boolean;
898
+ restrictToFunction?: boolean | undefined;
953
899
  }
954
-
955
900
  interface ContinueToLocationParameterType {
956
901
  /**
957
902
  * Location to continue to.
958
903
  */
959
904
  location: Location;
960
- targetCallFrames?: string;
905
+ targetCallFrames?: string | undefined;
961
906
  }
962
-
963
907
  interface PauseOnAsyncCallParameterType {
964
908
  /**
965
909
  * Debugger will pause when async call with given stack trace is started.
966
910
  */
967
911
  parentStackTraceId: Runtime.StackTraceId;
968
912
  }
969
-
970
913
  interface StepIntoParameterType {
971
914
  /**
972
915
  * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
973
916
  * @experimental
974
917
  */
975
- breakOnAsyncCall?: boolean;
918
+ breakOnAsyncCall?: boolean | undefined;
976
919
  }
977
-
978
920
  interface GetStackTraceParameterType {
979
921
  stackTraceId: Runtime.StackTraceId;
980
922
  }
981
-
982
923
  interface SearchInContentParameterType {
983
924
  /**
984
925
  * Id of the script to search in.
@@ -991,13 +932,12 @@ declare module 'inspector' {
991
932
  /**
992
933
  * If true, search is case sensitive.
993
934
  */
994
- caseSensitive?: boolean;
935
+ caseSensitive?: boolean | undefined;
995
936
  /**
996
937
  * If true, treats string parameter as regex.
997
938
  */
998
- isRegex?: boolean;
939
+ isRegex?: boolean | undefined;
999
940
  }
1000
-
1001
941
  interface SetScriptSourceParameterType {
1002
942
  /**
1003
943
  * Id of the script to edit.
@@ -1010,30 +950,26 @@ declare module 'inspector' {
1010
950
  /**
1011
951
  * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
1012
952
  */
1013
- dryRun?: boolean;
953
+ dryRun?: boolean | undefined;
1014
954
  }
1015
-
1016
955
  interface RestartFrameParameterType {
1017
956
  /**
1018
957
  * Call frame identifier to evaluate on.
1019
958
  */
1020
959
  callFrameId: CallFrameId;
1021
960
  }
1022
-
1023
961
  interface GetScriptSourceParameterType {
1024
962
  /**
1025
963
  * Id of the script to get source for.
1026
964
  */
1027
965
  scriptId: Runtime.ScriptId;
1028
966
  }
1029
-
1030
967
  interface SetPauseOnExceptionsParameterType {
1031
968
  /**
1032
969
  * Pause on exceptions mode.
1033
970
  */
1034
971
  state: string;
1035
972
  }
1036
-
1037
973
  interface EvaluateOnCallFrameParameterType {
1038
974
  /**
1039
975
  * Call frame identifier to evaluate on.
@@ -1046,30 +982,29 @@ declare module 'inspector' {
1046
982
  /**
1047
983
  * String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).
1048
984
  */
1049
- objectGroup?: string;
985
+ objectGroup?: string | undefined;
1050
986
  /**
1051
987
  * Specifies whether command line API should be available to the evaluated expression, defaults to false.
1052
988
  */
1053
- includeCommandLineAPI?: boolean;
989
+ includeCommandLineAPI?: boolean | undefined;
1054
990
  /**
1055
991
  * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
1056
992
  */
1057
- silent?: boolean;
993
+ silent?: boolean | undefined;
1058
994
  /**
1059
995
  * Whether the result is expected to be a JSON object that should be sent by value.
1060
996
  */
1061
- returnByValue?: boolean;
997
+ returnByValue?: boolean | undefined;
1062
998
  /**
1063
999
  * Whether preview should be generated for the result.
1064
1000
  * @experimental
1065
1001
  */
1066
- generatePreview?: boolean;
1002
+ generatePreview?: boolean | undefined;
1067
1003
  /**
1068
1004
  * Whether to throw an exception if side effect cannot be ruled out during evaluation.
1069
1005
  */
1070
- throwOnSideEffect?: boolean;
1006
+ throwOnSideEffect?: boolean | undefined;
1071
1007
  }
1072
-
1073
1008
  interface SetVariableValueParameterType {
1074
1009
  /**
1075
1010
  * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.
@@ -1088,28 +1023,24 @@ declare module 'inspector' {
1088
1023
  */
1089
1024
  callFrameId: CallFrameId;
1090
1025
  }
1091
-
1092
1026
  interface SetReturnValueParameterType {
1093
1027
  /**
1094
1028
  * New return value.
1095
1029
  */
1096
1030
  newValue: Runtime.CallArgument;
1097
1031
  }
1098
-
1099
1032
  interface SetAsyncCallStackDepthParameterType {
1100
1033
  /**
1101
1034
  * Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
1102
1035
  */
1103
1036
  maxDepth: number;
1104
1037
  }
1105
-
1106
1038
  interface SetBlackboxPatternsParameterType {
1107
1039
  /**
1108
1040
  * Array of regexps that will be used to check script url for blackbox state.
1109
1041
  */
1110
1042
  patterns: string[];
1111
1043
  }
1112
-
1113
1044
  interface SetBlackboxedRangesParameterType {
1114
1045
  /**
1115
1046
  * Id of the script.
@@ -1117,7 +1048,6 @@ declare module 'inspector' {
1117
1048
  scriptId: Runtime.ScriptId;
1118
1049
  positions: ScriptPosition[];
1119
1050
  }
1120
-
1121
1051
  interface EnableReturnType {
1122
1052
  /**
1123
1053
  * Unique identifier of the debugger.
@@ -1125,7 +1055,6 @@ declare module 'inspector' {
1125
1055
  */
1126
1056
  debuggerId: Runtime.UniqueDebuggerId;
1127
1057
  }
1128
-
1129
1058
  interface SetBreakpointByUrlReturnType {
1130
1059
  /**
1131
1060
  * Id of the created breakpoint for further reference.
@@ -1136,7 +1065,6 @@ declare module 'inspector' {
1136
1065
  */
1137
1066
  locations: Location[];
1138
1067
  }
1139
-
1140
1068
  interface SetBreakpointReturnType {
1141
1069
  /**
1142
1070
  * Id of the created breakpoint for further reference.
@@ -1147,49 +1075,44 @@ declare module 'inspector' {
1147
1075
  */
1148
1076
  actualLocation: Location;
1149
1077
  }
1150
-
1151
1078
  interface GetPossibleBreakpointsReturnType {
1152
1079
  /**
1153
1080
  * List of the possible breakpoint locations.
1154
1081
  */
1155
1082
  locations: BreakLocation[];
1156
1083
  }
1157
-
1158
1084
  interface GetStackTraceReturnType {
1159
1085
  stackTrace: Runtime.StackTrace;
1160
1086
  }
1161
-
1162
1087
  interface SearchInContentReturnType {
1163
1088
  /**
1164
1089
  * List of search matches.
1165
1090
  */
1166
1091
  result: SearchMatch[];
1167
1092
  }
1168
-
1169
1093
  interface SetScriptSourceReturnType {
1170
1094
  /**
1171
1095
  * New stack trace in case editing has happened while VM was stopped.
1172
1096
  */
1173
- callFrames?: CallFrame[];
1097
+ callFrames?: CallFrame[] | undefined;
1174
1098
  /**
1175
1099
  * Whether current call stack was modified after applying the changes.
1176
1100
  */
1177
- stackChanged?: boolean;
1101
+ stackChanged?: boolean | undefined;
1178
1102
  /**
1179
1103
  * Async stack trace, if any.
1180
1104
  */
1181
- asyncStackTrace?: Runtime.StackTrace;
1105
+ asyncStackTrace?: Runtime.StackTrace | undefined;
1182
1106
  /**
1183
1107
  * Async stack trace, if any.
1184
1108
  * @experimental
1185
1109
  */
1186
- asyncStackTraceId?: Runtime.StackTraceId;
1110
+ asyncStackTraceId?: Runtime.StackTraceId | undefined;
1187
1111
  /**
1188
1112
  * Exception details if any.
1189
1113
  */
1190
- exceptionDetails?: Runtime.ExceptionDetails;
1114
+ exceptionDetails?: Runtime.ExceptionDetails | undefined;
1191
1115
  }
1192
-
1193
1116
  interface RestartFrameReturnType {
1194
1117
  /**
1195
1118
  * New stack trace.
@@ -1198,21 +1121,19 @@ declare module 'inspector' {
1198
1121
  /**
1199
1122
  * Async stack trace, if any.
1200
1123
  */
1201
- asyncStackTrace?: Runtime.StackTrace;
1124
+ asyncStackTrace?: Runtime.StackTrace | undefined;
1202
1125
  /**
1203
1126
  * Async stack trace, if any.
1204
1127
  * @experimental
1205
1128
  */
1206
- asyncStackTraceId?: Runtime.StackTraceId;
1129
+ asyncStackTraceId?: Runtime.StackTraceId | undefined;
1207
1130
  }
1208
-
1209
1131
  interface GetScriptSourceReturnType {
1210
1132
  /**
1211
1133
  * Script source.
1212
1134
  */
1213
1135
  scriptSource: string;
1214
1136
  }
1215
-
1216
1137
  interface EvaluateOnCallFrameReturnType {
1217
1138
  /**
1218
1139
  * Object wrapper for the evaluation result.
@@ -1221,9 +1142,8 @@ declare module 'inspector' {
1221
1142
  /**
1222
1143
  * Exception details.
1223
1144
  */
1224
- exceptionDetails?: Runtime.ExceptionDetails;
1145
+ exceptionDetails?: Runtime.ExceptionDetails | undefined;
1225
1146
  }
1226
-
1227
1147
  interface ScriptParsedEventDataType {
1228
1148
  /**
1229
1149
  * Identifier of the script parsed.
@@ -1260,35 +1180,34 @@ declare module 'inspector' {
1260
1180
  /**
1261
1181
  * Embedder-specific auxiliary data.
1262
1182
  */
1263
- executionContextAuxData?: {};
1183
+ executionContextAuxData?: {} | undefined;
1264
1184
  /**
1265
1185
  * True, if this script is generated as a result of the live edit operation.
1266
1186
  * @experimental
1267
1187
  */
1268
- isLiveEdit?: boolean;
1188
+ isLiveEdit?: boolean | undefined;
1269
1189
  /**
1270
1190
  * URL of source map associated with script (if any).
1271
1191
  */
1272
- sourceMapURL?: string;
1192
+ sourceMapURL?: string | undefined;
1273
1193
  /**
1274
1194
  * True, if this script has sourceURL.
1275
1195
  */
1276
- hasSourceURL?: boolean;
1196
+ hasSourceURL?: boolean | undefined;
1277
1197
  /**
1278
1198
  * True, if this script is ES6 module.
1279
1199
  */
1280
- isModule?: boolean;
1200
+ isModule?: boolean | undefined;
1281
1201
  /**
1282
1202
  * This script length.
1283
1203
  */
1284
- length?: number;
1204
+ length?: number | undefined;
1285
1205
  /**
1286
1206
  * JavaScript top stack frame of where the script parsed event was triggered if available.
1287
1207
  * @experimental
1288
1208
  */
1289
- stackTrace?: Runtime.StackTrace;
1209
+ stackTrace?: Runtime.StackTrace | undefined;
1290
1210
  }
1291
-
1292
1211
  interface ScriptFailedToParseEventDataType {
1293
1212
  /**
1294
1213
  * Identifier of the script parsed.
@@ -1325,30 +1244,29 @@ declare module 'inspector' {
1325
1244
  /**
1326
1245
  * Embedder-specific auxiliary data.
1327
1246
  */
1328
- executionContextAuxData?: {};
1247
+ executionContextAuxData?: {} | undefined;
1329
1248
  /**
1330
1249
  * URL of source map associated with script (if any).
1331
1250
  */
1332
- sourceMapURL?: string;
1251
+ sourceMapURL?: string | undefined;
1333
1252
  /**
1334
1253
  * True, if this script has sourceURL.
1335
1254
  */
1336
- hasSourceURL?: boolean;
1255
+ hasSourceURL?: boolean | undefined;
1337
1256
  /**
1338
1257
  * True, if this script is ES6 module.
1339
1258
  */
1340
- isModule?: boolean;
1259
+ isModule?: boolean | undefined;
1341
1260
  /**
1342
1261
  * This script length.
1343
1262
  */
1344
- length?: number;
1263
+ length?: number | undefined;
1345
1264
  /**
1346
1265
  * JavaScript top stack frame of where the script parsed event was triggered if available.
1347
1266
  * @experimental
1348
1267
  */
1349
- stackTrace?: Runtime.StackTrace;
1268
+ stackTrace?: Runtime.StackTrace | undefined;
1350
1269
  }
1351
-
1352
1270
  interface BreakpointResolvedEventDataType {
1353
1271
  /**
1354
1272
  * Breakpoint unique identifier.
@@ -1359,7 +1277,6 @@ declare module 'inspector' {
1359
1277
  */
1360
1278
  location: Location;
1361
1279
  }
1362
-
1363
1280
  interface PausedEventDataType {
1364
1281
  /**
1365
1282
  * Call stack the virtual machine stopped on.
@@ -1372,28 +1289,27 @@ declare module 'inspector' {
1372
1289
  /**
1373
1290
  * Object containing break-specific auxiliary properties.
1374
1291
  */
1375
- data?: {};
1292
+ data?: {} | undefined;
1376
1293
  /**
1377
1294
  * Hit breakpoints IDs
1378
1295
  */
1379
- hitBreakpoints?: string[];
1296
+ hitBreakpoints?: string[] | undefined;
1380
1297
  /**
1381
1298
  * Async stack trace, if any.
1382
1299
  */
1383
- asyncStackTrace?: Runtime.StackTrace;
1300
+ asyncStackTrace?: Runtime.StackTrace | undefined;
1384
1301
  /**
1385
1302
  * Async stack trace, if any.
1386
1303
  * @experimental
1387
1304
  */
1388
- asyncStackTraceId?: Runtime.StackTraceId;
1305
+ asyncStackTraceId?: Runtime.StackTraceId | undefined;
1389
1306
  /**
1390
1307
  * 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
1308
  * @experimental
1392
1309
  */
1393
- asyncCallStackTraceId?: Runtime.StackTraceId;
1310
+ asyncCallStackTraceId?: Runtime.StackTraceId | undefined;
1394
1311
  }
1395
1312
  }
1396
-
1397
1313
  namespace Console {
1398
1314
  /**
1399
1315
  * Console message.
@@ -1414,17 +1330,16 @@ declare module 'inspector' {
1414
1330
  /**
1415
1331
  * URL of the message origin.
1416
1332
  */
1417
- url?: string;
1333
+ url?: string | undefined;
1418
1334
  /**
1419
1335
  * Line number in the resource that generated this message (1-based).
1420
1336
  */
1421
- line?: number;
1337
+ line?: number | undefined;
1422
1338
  /**
1423
1339
  * Column number in the resource that generated this message (1-based).
1424
1340
  */
1425
- column?: number;
1341
+ column?: number | undefined;
1426
1342
  }
1427
-
1428
1343
  interface MessageAddedEventDataType {
1429
1344
  /**
1430
1345
  * Console message that has been added.
@@ -1432,7 +1347,6 @@ declare module 'inspector' {
1432
1347
  message: ConsoleMessage;
1433
1348
  }
1434
1349
  }
1435
-
1436
1350
  namespace Profiler {
1437
1351
  /**
1438
1352
  * Profile node. Holds callsite information, execution statistics and child nodes.
@@ -1449,21 +1363,20 @@ declare module 'inspector' {
1449
1363
  /**
1450
1364
  * Number of samples where this node was on top of the call stack.
1451
1365
  */
1452
- hitCount?: number;
1366
+ hitCount?: number | undefined;
1453
1367
  /**
1454
1368
  * Child node ids.
1455
1369
  */
1456
- children?: number[];
1370
+ children?: number[] | undefined;
1457
1371
  /**
1458
1372
  * The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
1459
1373
  */
1460
- deoptReason?: string;
1374
+ deoptReason?: string | undefined;
1461
1375
  /**
1462
1376
  * An array of source position ticks.
1463
1377
  */
1464
- positionTicks?: PositionTickInfo[];
1378
+ positionTicks?: PositionTickInfo[] | undefined;
1465
1379
  }
1466
-
1467
1380
  /**
1468
1381
  * Profile.
1469
1382
  */
@@ -1483,13 +1396,12 @@ declare module 'inspector' {
1483
1396
  /**
1484
1397
  * Ids of samples top nodes.
1485
1398
  */
1486
- samples?: number[];
1399
+ samples?: number[] | undefined;
1487
1400
  /**
1488
1401
  * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
1489
1402
  */
1490
- timeDeltas?: number[];
1403
+ timeDeltas?: number[] | undefined;
1491
1404
  }
1492
-
1493
1405
  /**
1494
1406
  * Specifies a number of samples attributed to a certain source position.
1495
1407
  */
@@ -1503,7 +1415,6 @@ declare module 'inspector' {
1503
1415
  */
1504
1416
  ticks: number;
1505
1417
  }
1506
-
1507
1418
  /**
1508
1419
  * Coverage data for a source range.
1509
1420
  */
@@ -1521,7 +1432,6 @@ declare module 'inspector' {
1521
1432
  */
1522
1433
  count: number;
1523
1434
  }
1524
-
1525
1435
  /**
1526
1436
  * Coverage data for a JavaScript function.
1527
1437
  */
@@ -1539,7 +1449,6 @@ declare module 'inspector' {
1539
1449
  */
1540
1450
  isBlockCoverage: boolean;
1541
1451
  }
1542
-
1543
1452
  /**
1544
1453
  * Coverage data for a JavaScript script.
1545
1454
  */
@@ -1557,7 +1466,6 @@ declare module 'inspector' {
1557
1466
  */
1558
1467
  functions: FunctionCoverage[];
1559
1468
  }
1560
-
1561
1469
  /**
1562
1470
  * Describes a type collected during runtime.
1563
1471
  * @experimental
@@ -1568,7 +1476,6 @@ declare module 'inspector' {
1568
1476
  */
1569
1477
  name: string;
1570
1478
  }
1571
-
1572
1479
  /**
1573
1480
  * Source offset and types for a parameter or return value.
1574
1481
  * @experimental
@@ -1583,7 +1490,6 @@ declare module 'inspector' {
1583
1490
  */
1584
1491
  types: TypeObject[];
1585
1492
  }
1586
-
1587
1493
  /**
1588
1494
  * Type profile data collected during runtime for a JavaScript script.
1589
1495
  * @experimental
@@ -1602,53 +1508,46 @@ declare module 'inspector' {
1602
1508
  */
1603
1509
  entries: TypeProfileEntry[];
1604
1510
  }
1605
-
1606
1511
  interface SetSamplingIntervalParameterType {
1607
1512
  /**
1608
1513
  * New sampling interval in microseconds.
1609
1514
  */
1610
1515
  interval: number;
1611
1516
  }
1612
-
1613
1517
  interface StartPreciseCoverageParameterType {
1614
1518
  /**
1615
1519
  * Collect accurate call counts beyond simple 'covered' or 'not covered'.
1616
1520
  */
1617
- callCount?: boolean;
1521
+ callCount?: boolean | undefined;
1618
1522
  /**
1619
1523
  * Collect block-based coverage.
1620
1524
  */
1621
- detailed?: boolean;
1525
+ detailed?: boolean | undefined;
1622
1526
  }
1623
-
1624
1527
  interface StopReturnType {
1625
1528
  /**
1626
1529
  * Recorded profile.
1627
1530
  */
1628
1531
  profile: Profile;
1629
1532
  }
1630
-
1631
1533
  interface TakePreciseCoverageReturnType {
1632
1534
  /**
1633
1535
  * Coverage data for the current isolate.
1634
1536
  */
1635
1537
  result: ScriptCoverage[];
1636
1538
  }
1637
-
1638
1539
  interface GetBestEffortCoverageReturnType {
1639
1540
  /**
1640
1541
  * Coverage data for the current isolate.
1641
1542
  */
1642
1543
  result: ScriptCoverage[];
1643
1544
  }
1644
-
1645
1545
  interface TakeTypeProfileReturnType {
1646
1546
  /**
1647
1547
  * Type profile for all scripts since startTypeProfile() was turned on.
1648
1548
  */
1649
1549
  result: ScriptTypeProfile[];
1650
1550
  }
1651
-
1652
1551
  interface ConsoleProfileStartedEventDataType {
1653
1552
  id: string;
1654
1553
  /**
@@ -1658,9 +1557,8 @@ declare module 'inspector' {
1658
1557
  /**
1659
1558
  * Profile title passed as an argument to console.profile().
1660
1559
  */
1661
- title?: string;
1560
+ title?: string | undefined;
1662
1561
  }
1663
-
1664
1562
  interface ConsoleProfileFinishedEventDataType {
1665
1563
  id: string;
1666
1564
  /**
@@ -1671,16 +1569,14 @@ declare module 'inspector' {
1671
1569
  /**
1672
1570
  * Profile title passed as an argument to console.profile().
1673
1571
  */
1674
- title?: string;
1572
+ title?: string | undefined;
1675
1573
  }
1676
1574
  }
1677
-
1678
1575
  namespace HeapProfiler {
1679
1576
  /**
1680
1577
  * Heap snapshot object id.
1681
1578
  */
1682
1579
  type HeapSnapshotObjectId = string;
1683
-
1684
1580
  /**
1685
1581
  * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
1686
1582
  */
@@ -1698,104 +1594,88 @@ declare module 'inspector' {
1698
1594
  */
1699
1595
  children: SamplingHeapProfileNode[];
1700
1596
  }
1701
-
1702
1597
  /**
1703
1598
  * Profile.
1704
1599
  */
1705
1600
  interface SamplingHeapProfile {
1706
1601
  head: SamplingHeapProfileNode;
1707
1602
  }
1708
-
1709
1603
  interface StartTrackingHeapObjectsParameterType {
1710
- trackAllocations?: boolean;
1604
+ trackAllocations?: boolean | undefined;
1711
1605
  }
1712
-
1713
1606
  interface StopTrackingHeapObjectsParameterType {
1714
1607
  /**
1715
1608
  * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
1716
1609
  */
1717
- reportProgress?: boolean;
1610
+ reportProgress?: boolean | undefined;
1718
1611
  }
1719
-
1720
1612
  interface TakeHeapSnapshotParameterType {
1721
1613
  /**
1722
1614
  * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
1723
1615
  */
1724
- reportProgress?: boolean;
1616
+ reportProgress?: boolean | undefined;
1725
1617
  }
1726
-
1727
1618
  interface GetObjectByHeapObjectIdParameterType {
1728
1619
  objectId: HeapSnapshotObjectId;
1729
1620
  /**
1730
1621
  * Symbolic group name that can be used to release multiple objects.
1731
1622
  */
1732
- objectGroup?: string;
1623
+ objectGroup?: string | undefined;
1733
1624
  }
1734
-
1735
1625
  interface AddInspectedHeapObjectParameterType {
1736
1626
  /**
1737
1627
  * Heap snapshot object id to be accessible by means of $x command line API.
1738
1628
  */
1739
1629
  heapObjectId: HeapSnapshotObjectId;
1740
1630
  }
1741
-
1742
1631
  interface GetHeapObjectIdParameterType {
1743
1632
  /**
1744
1633
  * Identifier of the object to get heap object id for.
1745
1634
  */
1746
1635
  objectId: Runtime.RemoteObjectId;
1747
1636
  }
1748
-
1749
1637
  interface StartSamplingParameterType {
1750
1638
  /**
1751
1639
  * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
1752
1640
  */
1753
- samplingInterval?: number;
1641
+ samplingInterval?: number | undefined;
1754
1642
  }
1755
-
1756
1643
  interface GetObjectByHeapObjectIdReturnType {
1757
1644
  /**
1758
1645
  * Evaluation result.
1759
1646
  */
1760
1647
  result: Runtime.RemoteObject;
1761
1648
  }
1762
-
1763
1649
  interface GetHeapObjectIdReturnType {
1764
1650
  /**
1765
1651
  * Id of the heap snapshot object corresponding to the passed remote object id.
1766
1652
  */
1767
1653
  heapSnapshotObjectId: HeapSnapshotObjectId;
1768
1654
  }
1769
-
1770
1655
  interface StopSamplingReturnType {
1771
1656
  /**
1772
1657
  * Recorded sampling heap profile.
1773
1658
  */
1774
1659
  profile: SamplingHeapProfile;
1775
1660
  }
1776
-
1777
1661
  interface GetSamplingProfileReturnType {
1778
1662
  /**
1779
1663
  * Return the sampling profile being collected.
1780
1664
  */
1781
1665
  profile: SamplingHeapProfile;
1782
1666
  }
1783
-
1784
1667
  interface AddHeapSnapshotChunkEventDataType {
1785
1668
  chunk: string;
1786
1669
  }
1787
-
1788
1670
  interface ReportHeapSnapshotProgressEventDataType {
1789
1671
  done: number;
1790
1672
  total: number;
1791
- finished?: boolean;
1673
+ finished?: boolean | undefined;
1792
1674
  }
1793
-
1794
1675
  interface LastSeenObjectIdEventDataType {
1795
1676
  lastSeenObjectId: number;
1796
1677
  timestamp: number;
1797
1678
  }
1798
-
1799
1679
  interface HeapStatsUpdateEventDataType {
1800
1680
  /**
1801
1681
  * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.
@@ -1803,50 +1683,42 @@ declare module 'inspector' {
1803
1683
  statsUpdate: number[];
1804
1684
  }
1805
1685
  }
1806
-
1807
1686
  namespace NodeTracing {
1808
1687
  interface TraceConfig {
1809
1688
  /**
1810
1689
  * Controls how the trace buffer stores data.
1811
1690
  */
1812
- recordMode?: string;
1691
+ recordMode?: string | undefined;
1813
1692
  /**
1814
1693
  * Included category filters.
1815
1694
  */
1816
1695
  includedCategories: string[];
1817
1696
  }
1818
-
1819
1697
  interface StartParameterType {
1820
1698
  traceConfig: TraceConfig;
1821
1699
  }
1822
-
1823
1700
  interface GetCategoriesReturnType {
1824
1701
  /**
1825
1702
  * A list of supported tracing categories.
1826
1703
  */
1827
1704
  categories: string[];
1828
1705
  }
1829
-
1830
1706
  interface DataCollectedEventDataType {
1831
1707
  value: Array<{}>;
1832
1708
  }
1833
1709
  }
1834
-
1835
1710
  namespace NodeWorker {
1836
1711
  type WorkerID = string;
1837
-
1838
1712
  /**
1839
1713
  * Unique identifier of attached debugging session.
1840
1714
  */
1841
1715
  type SessionID = string;
1842
-
1843
1716
  interface WorkerInfo {
1844
1717
  workerId: WorkerID;
1845
1718
  type: string;
1846
1719
  title: string;
1847
1720
  url: string;
1848
1721
  }
1849
-
1850
1722
  interface SendMessageToWorkerParameterType {
1851
1723
  message: string;
1852
1724
  /**
@@ -1854,7 +1726,6 @@ declare module 'inspector' {
1854
1726
  */
1855
1727
  sessionId: SessionID;
1856
1728
  }
1857
-
1858
1729
  interface EnableParameterType {
1859
1730
  /**
1860
1731
  * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
@@ -1862,11 +1733,9 @@ declare module 'inspector' {
1862
1733
  */
1863
1734
  waitForDebuggerOnStart: boolean;
1864
1735
  }
1865
-
1866
1736
  interface DetachParameterType {
1867
1737
  sessionId: SessionID;
1868
1738
  }
1869
-
1870
1739
  interface AttachedToWorkerEventDataType {
1871
1740
  /**
1872
1741
  * Identifier assigned to the session used to send/receive messages.
@@ -1875,14 +1744,12 @@ declare module 'inspector' {
1875
1744
  workerInfo: WorkerInfo;
1876
1745
  waitingForDebugger: boolean;
1877
1746
  }
1878
-
1879
1747
  interface DetachedFromWorkerEventDataType {
1880
1748
  /**
1881
1749
  * Detached session identifier.
1882
1750
  */
1883
1751
  sessionId: SessionID;
1884
1752
  }
1885
-
1886
1753
  interface ReceivedMessageFromWorkerEventDataType {
1887
1754
  /**
1888
1755
  * Identifier of a session which sends a message.
@@ -1891,15 +1758,14 @@ declare module 'inspector' {
1891
1758
  message: string;
1892
1759
  }
1893
1760
  }
1894
-
1895
1761
  namespace NodeRuntime {
1896
1762
  interface NotifyWhenWaitingForDisconnectParameterType {
1897
1763
  enabled: boolean;
1898
1764
  }
1899
1765
  }
1900
-
1901
1766
  /**
1902
- * The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.
1767
+ * The `inspector.Session` is used for dispatching messages to the V8 inspector
1768
+ * back-end and receiving message responses and notifications.
1903
1769
  */
1904
1770
  class Session extends EventEmitter {
1905
1771
  /**
@@ -1907,1135 +1773,969 @@ declare module 'inspector' {
1907
1773
  * The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend.
1908
1774
  */
1909
1775
  constructor();
1910
-
1911
1776
  /**
1912
1777
  * Connects a session to the inspector back-end.
1913
- * An exception will be thrown if there is already a connected session established either
1914
- * through the API or by a front-end connected to the Inspector WebSocket port.
1778
+ * @since v8.0.0
1915
1779
  */
1916
1780
  connect(): void;
1917
-
1918
1781
  /**
1919
- * Immediately close the session. All pending message callbacks will be called with an error.
1920
- * session.connect() will need to be called to be able to send messages again.
1921
- * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
1782
+ * Immediately close the session. All pending message callbacks will be called
1783
+ * with an error. `session.connect()` will need to be called to be able to send
1784
+ * messages again. Reconnected session will lose all inspector state, such as
1785
+ * enabled agents or configured breakpoints.
1786
+ * @since v8.0.0
1922
1787
  */
1923
1788
  disconnect(): void;
1924
-
1925
1789
  /**
1926
- * Posts a message to the inspector back-end. callback will be notified when a response is received.
1927
- * callback is a function that accepts two optional arguments - error and message-specific result.
1790
+ * Posts a message to the inspector back-end. `callback` will be notified when
1791
+ * a response is received. `callback` is a function that accepts two optional
1792
+ * arguments: error and message-specific result.
1793
+ *
1794
+ * ```js
1795
+ * session.post('Runtime.evaluate', { expression: '2 + 2' },
1796
+ * (error, { result }) => console.log(result));
1797
+ * // Output: { type: 'number', value: 4, description: '4' }
1798
+ * ```
1799
+ *
1800
+ * The latest version of the V8 inspector protocol is published on the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/).
1801
+ *
1802
+ * Node.js inspector supports all the Chrome DevTools Protocol domains declared
1803
+ * by V8\. Chrome DevTools Protocol domain provides an interface for interacting
1804
+ * with one of the runtime agents used to inspect the application state and listen
1805
+ * to the run-time events.
1806
+ *
1807
+ * ## Example usage
1808
+ *
1809
+ * Apart from the debugger, various V8 Profilers are available through the DevTools
1810
+ * protocol.
1811
+ * @since v8.0.0
1928
1812
  */
1929
1813
  post(method: string, params?: {}, callback?: (err: Error | null, params?: {}) => void): void;
1930
1814
  post(method: string, callback?: (err: Error | null, params?: {}) => void): void;
1931
-
1932
1815
  /**
1933
1816
  * Returns supported domains.
1934
1817
  */
1935
- post(method: "Schema.getDomains", callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
1936
-
1818
+ post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
1937
1819
  /**
1938
1820
  * Evaluates expression on global object.
1939
1821
  */
1940
- post(method: "Runtime.evaluate", params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1941
- post(method: "Runtime.evaluate", callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1942
-
1822
+ post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1823
+ post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1943
1824
  /**
1944
1825
  * Add handler to promise with given promise object id.
1945
1826
  */
1946
- post(method: "Runtime.awaitPromise", params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1947
- post(method: "Runtime.awaitPromise", callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1948
-
1827
+ post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1828
+ post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1949
1829
  /**
1950
1830
  * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
1951
1831
  */
1952
- post(method: "Runtime.callFunctionOn", params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1953
- post(method: "Runtime.callFunctionOn", callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1954
-
1832
+ post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1833
+ post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1955
1834
  /**
1956
1835
  * Returns properties of a given object. Object group of the result is inherited from the target object.
1957
1836
  */
1958
- post(method: "Runtime.getProperties", params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1959
- post(method: "Runtime.getProperties", callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1960
-
1837
+ post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1838
+ post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1961
1839
  /**
1962
1840
  * Releases remote object with given id.
1963
1841
  */
1964
- post(method: "Runtime.releaseObject", params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
1965
- post(method: "Runtime.releaseObject", callback?: (err: Error | null) => void): void;
1966
-
1842
+ post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
1843
+ post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void;
1967
1844
  /**
1968
1845
  * Releases all remote objects that belong to a given group.
1969
1846
  */
1970
- post(method: "Runtime.releaseObjectGroup", params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
1971
- post(method: "Runtime.releaseObjectGroup", callback?: (err: Error | null) => void): void;
1972
-
1847
+ post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
1848
+ post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void;
1973
1849
  /**
1974
1850
  * Tells inspected instance to run if it was waiting for debugger to attach.
1975
1851
  */
1976
- post(method: "Runtime.runIfWaitingForDebugger", callback?: (err: Error | null) => void): void;
1977
-
1852
+ post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void;
1978
1853
  /**
1979
1854
  * Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
1980
1855
  */
1981
- post(method: "Runtime.enable", callback?: (err: Error | null) => void): void;
1982
-
1856
+ post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void;
1983
1857
  /**
1984
1858
  * Disables reporting of execution contexts creation.
1985
1859
  */
1986
- post(method: "Runtime.disable", callback?: (err: Error | null) => void): void;
1987
-
1860
+ post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void;
1988
1861
  /**
1989
1862
  * Discards collected exceptions and console API calls.
1990
1863
  */
1991
- post(method: "Runtime.discardConsoleEntries", callback?: (err: Error | null) => void): void;
1992
-
1864
+ post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void;
1993
1865
  /**
1994
1866
  * @experimental
1995
1867
  */
1996
- post(method: "Runtime.setCustomObjectFormatterEnabled", params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
1997
- post(method: "Runtime.setCustomObjectFormatterEnabled", callback?: (err: Error | null) => void): void;
1998
-
1868
+ post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
1869
+ post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void;
1999
1870
  /**
2000
1871
  * Compiles expression.
2001
1872
  */
2002
- post(method: "Runtime.compileScript", params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
2003
- post(method: "Runtime.compileScript", callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
2004
-
1873
+ post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
1874
+ post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
2005
1875
  /**
2006
1876
  * Runs script with given id in a given context.
2007
1877
  */
2008
- post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
2009
- post(method: "Runtime.runScript", callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
2010
-
2011
- post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
2012
- post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
2013
-
1878
+ post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
1879
+ post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
1880
+ post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
1881
+ post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
2014
1882
  /**
2015
1883
  * Returns all let, const and class variables from global scope.
2016
1884
  */
2017
1885
  post(
2018
- method: "Runtime.globalLexicalScopeNames",
1886
+ method: 'Runtime.globalLexicalScopeNames',
2019
1887
  params?: Runtime.GlobalLexicalScopeNamesParameterType,
2020
1888
  callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
2021
1889
  ): void;
2022
- post(method: "Runtime.globalLexicalScopeNames", callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
2023
-
1890
+ post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
2024
1891
  /**
2025
1892
  * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
2026
1893
  */
2027
- post(method: "Debugger.enable", callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
2028
-
1894
+ post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
2029
1895
  /**
2030
1896
  * Disables debugger for given page.
2031
1897
  */
2032
- post(method: "Debugger.disable", callback?: (err: Error | null) => void): void;
2033
-
1898
+ post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void;
2034
1899
  /**
2035
1900
  * Activates / deactivates all breakpoints on the page.
2036
1901
  */
2037
- post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
2038
- post(method: "Debugger.setBreakpointsActive", callback?: (err: Error | null) => void): void;
2039
-
1902
+ post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
1903
+ post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void;
2040
1904
  /**
2041
1905
  * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
2042
1906
  */
2043
- post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
2044
- post(method: "Debugger.setSkipAllPauses", callback?: (err: Error | null) => void): void;
2045
-
1907
+ post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
1908
+ post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void;
2046
1909
  /**
2047
1910
  * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
2048
1911
  */
2049
- post(method: "Debugger.setBreakpointByUrl", params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
2050
- post(method: "Debugger.setBreakpointByUrl", callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
2051
-
1912
+ post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
1913
+ post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
2052
1914
  /**
2053
1915
  * Sets JavaScript breakpoint at a given location.
2054
1916
  */
2055
- post(method: "Debugger.setBreakpoint", params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
2056
- post(method: "Debugger.setBreakpoint", callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
2057
-
1917
+ post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
1918
+ post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
2058
1919
  /**
2059
1920
  * Removes JavaScript breakpoint.
2060
1921
  */
2061
- post(method: "Debugger.removeBreakpoint", params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
2062
- post(method: "Debugger.removeBreakpoint", callback?: (err: Error | null) => void): void;
2063
-
1922
+ post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
1923
+ post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void;
2064
1924
  /**
2065
1925
  * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
2066
1926
  */
2067
1927
  post(
2068
- method: "Debugger.getPossibleBreakpoints",
1928
+ method: 'Debugger.getPossibleBreakpoints',
2069
1929
  params?: Debugger.GetPossibleBreakpointsParameterType,
2070
1930
  callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
2071
1931
  ): void;
2072
- post(method: "Debugger.getPossibleBreakpoints", callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
2073
-
1932
+ post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
2074
1933
  /**
2075
1934
  * Continues execution until specific location is reached.
2076
1935
  */
2077
- post(method: "Debugger.continueToLocation", params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
2078
- post(method: "Debugger.continueToLocation", callback?: (err: Error | null) => void): void;
2079
-
1936
+ post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
1937
+ post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void;
2080
1938
  /**
2081
1939
  * @experimental
2082
1940
  */
2083
- post(method: "Debugger.pauseOnAsyncCall", params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
2084
- post(method: "Debugger.pauseOnAsyncCall", callback?: (err: Error | null) => void): void;
2085
-
1941
+ post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
1942
+ post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void;
2086
1943
  /**
2087
1944
  * Steps over the statement.
2088
1945
  */
2089
- post(method: "Debugger.stepOver", callback?: (err: Error | null) => void): void;
2090
-
1946
+ post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void;
2091
1947
  /**
2092
1948
  * Steps into the function call.
2093
1949
  */
2094
- post(method: "Debugger.stepInto", params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
2095
- post(method: "Debugger.stepInto", callback?: (err: Error | null) => void): void;
2096
-
1950
+ post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
1951
+ post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void;
2097
1952
  /**
2098
1953
  * Steps out of the function call.
2099
1954
  */
2100
- post(method: "Debugger.stepOut", callback?: (err: Error | null) => void): void;
2101
-
1955
+ post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void;
2102
1956
  /**
2103
1957
  * Stops on the next JavaScript statement.
2104
1958
  */
2105
- post(method: "Debugger.pause", callback?: (err: Error | null) => void): void;
2106
-
1959
+ post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void;
2107
1960
  /**
2108
1961
  * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
2109
1962
  * @experimental
2110
1963
  */
2111
- post(method: "Debugger.scheduleStepIntoAsync", callback?: (err: Error | null) => void): void;
2112
-
1964
+ post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void;
2113
1965
  /**
2114
1966
  * Resumes JavaScript execution.
2115
1967
  */
2116
- post(method: "Debugger.resume", callback?: (err: Error | null) => void): void;
2117
-
1968
+ post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void;
2118
1969
  /**
2119
1970
  * Returns stack trace with given <code>stackTraceId</code>.
2120
1971
  * @experimental
2121
1972
  */
2122
- post(method: "Debugger.getStackTrace", params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
2123
- post(method: "Debugger.getStackTrace", callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
2124
-
1973
+ post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
1974
+ post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
2125
1975
  /**
2126
1976
  * Searches for given string in script content.
2127
1977
  */
2128
- post(method: "Debugger.searchInContent", params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
2129
- post(method: "Debugger.searchInContent", callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
2130
-
1978
+ post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
1979
+ post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
2131
1980
  /**
2132
1981
  * Edits JavaScript source live.
2133
1982
  */
2134
- post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
2135
- post(method: "Debugger.setScriptSource", callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
2136
-
1983
+ post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
1984
+ post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
2137
1985
  /**
2138
1986
  * Restarts particular call frame from the beginning.
2139
1987
  */
2140
- post(method: "Debugger.restartFrame", params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
2141
- post(method: "Debugger.restartFrame", callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
2142
-
1988
+ post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
1989
+ post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
2143
1990
  /**
2144
1991
  * Returns source for the script with given id.
2145
1992
  */
2146
- post(method: "Debugger.getScriptSource", params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
2147
- post(method: "Debugger.getScriptSource", callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
2148
-
1993
+ post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
1994
+ post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
2149
1995
  /**
2150
1996
  * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
2151
1997
  */
2152
- post(method: "Debugger.setPauseOnExceptions", params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
2153
- post(method: "Debugger.setPauseOnExceptions", callback?: (err: Error | null) => void): void;
2154
-
1998
+ post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
1999
+ post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void;
2155
2000
  /**
2156
2001
  * Evaluates expression on a given call frame.
2157
2002
  */
2158
- post(method: "Debugger.evaluateOnCallFrame", params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2159
- post(method: "Debugger.evaluateOnCallFrame", callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2160
-
2003
+ post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2004
+ post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2161
2005
  /**
2162
2006
  * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
2163
2007
  */
2164
- post(method: "Debugger.setVariableValue", params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
2165
- post(method: "Debugger.setVariableValue", callback?: (err: Error | null) => void): void;
2166
-
2008
+ post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
2009
+ post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void;
2167
2010
  /**
2168
2011
  * Changes return value in top frame. Available only at return break position.
2169
2012
  * @experimental
2170
2013
  */
2171
- post(method: "Debugger.setReturnValue", params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
2172
- post(method: "Debugger.setReturnValue", callback?: (err: Error | null) => void): void;
2173
-
2014
+ post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
2015
+ post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void;
2174
2016
  /**
2175
2017
  * Enables or disables async call stacks tracking.
2176
2018
  */
2177
- post(method: "Debugger.setAsyncCallStackDepth", params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
2178
- post(method: "Debugger.setAsyncCallStackDepth", callback?: (err: Error | null) => void): void;
2179
-
2019
+ post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
2020
+ post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void;
2180
2021
  /**
2181
2022
  * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
2182
2023
  * @experimental
2183
2024
  */
2184
- post(method: "Debugger.setBlackboxPatterns", params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
2185
- post(method: "Debugger.setBlackboxPatterns", callback?: (err: Error | null) => void): void;
2186
-
2025
+ post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
2026
+ post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void;
2187
2027
  /**
2188
2028
  * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
2189
2029
  * @experimental
2190
2030
  */
2191
- post(method: "Debugger.setBlackboxedRanges", params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
2192
- post(method: "Debugger.setBlackboxedRanges", callback?: (err: Error | null) => void): void;
2193
-
2031
+ post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
2032
+ post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void;
2194
2033
  /**
2195
2034
  * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
2196
2035
  */
2197
- post(method: "Console.enable", callback?: (err: Error | null) => void): void;
2198
-
2036
+ post(method: 'Console.enable', callback?: (err: Error | null) => void): void;
2199
2037
  /**
2200
2038
  * Disables console domain, prevents further console messages from being reported to the client.
2201
2039
  */
2202
- post(method: "Console.disable", callback?: (err: Error | null) => void): void;
2203
-
2040
+ post(method: 'Console.disable', callback?: (err: Error | null) => void): void;
2204
2041
  /**
2205
2042
  * Does nothing.
2206
2043
  */
2207
- post(method: "Console.clearMessages", callback?: (err: Error | null) => void): void;
2208
-
2209
- post(method: "Profiler.enable", callback?: (err: Error | null) => void): void;
2210
-
2211
- post(method: "Profiler.disable", callback?: (err: Error | null) => void): void;
2212
-
2044
+ post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void;
2045
+ post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void;
2046
+ post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void;
2213
2047
  /**
2214
2048
  * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
2215
2049
  */
2216
- post(method: "Profiler.setSamplingInterval", params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
2217
- post(method: "Profiler.setSamplingInterval", callback?: (err: Error | null) => void): void;
2218
-
2219
- post(method: "Profiler.start", callback?: (err: Error | null) => void): void;
2220
-
2221
- post(method: "Profiler.stop", callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
2222
-
2050
+ post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
2051
+ post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void;
2052
+ post(method: 'Profiler.start', callback?: (err: Error | null) => void): void;
2053
+ post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
2223
2054
  /**
2224
2055
  * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
2225
2056
  */
2226
- post(method: "Profiler.startPreciseCoverage", params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
2227
- post(method: "Profiler.startPreciseCoverage", callback?: (err: Error | null) => void): void;
2228
-
2057
+ post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
2058
+ post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void;
2229
2059
  /**
2230
2060
  * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
2231
2061
  */
2232
- post(method: "Profiler.stopPreciseCoverage", callback?: (err: Error | null) => void): void;
2233
-
2062
+ post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void;
2234
2063
  /**
2235
2064
  * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
2236
2065
  */
2237
- post(method: "Profiler.takePreciseCoverage", callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
2238
-
2066
+ post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
2239
2067
  /**
2240
2068
  * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
2241
2069
  */
2242
- post(method: "Profiler.getBestEffortCoverage", callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
2243
-
2070
+ post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
2244
2071
  /**
2245
2072
  * Enable type profile.
2246
2073
  * @experimental
2247
2074
  */
2248
- post(method: "Profiler.startTypeProfile", callback?: (err: Error | null) => void): void;
2249
-
2075
+ post(method: 'Profiler.startTypeProfile', callback?: (err: Error | null) => void): void;
2250
2076
  /**
2251
2077
  * Disable type profile. Disabling releases type profile data collected so far.
2252
2078
  * @experimental
2253
2079
  */
2254
- post(method: "Profiler.stopTypeProfile", callback?: (err: Error | null) => void): void;
2255
-
2080
+ post(method: 'Profiler.stopTypeProfile', callback?: (err: Error | null) => void): void;
2256
2081
  /**
2257
2082
  * Collect type profile.
2258
2083
  * @experimental
2259
2084
  */
2260
- post(method: "Profiler.takeTypeProfile", callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
2261
-
2262
- post(method: "HeapProfiler.enable", callback?: (err: Error | null) => void): void;
2263
-
2264
- post(method: "HeapProfiler.disable", callback?: (err: Error | null) => void): void;
2265
-
2266
- post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2267
- post(method: "HeapProfiler.startTrackingHeapObjects", callback?: (err: Error | null) => void): void;
2268
-
2269
- post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2270
- post(method: "HeapProfiler.stopTrackingHeapObjects", callback?: (err: Error | null) => void): void;
2271
-
2272
- post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
2273
- post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void;
2274
-
2275
- post(method: "HeapProfiler.collectGarbage", callback?: (err: Error | null) => void): void;
2276
-
2085
+ post(method: 'Profiler.takeTypeProfile', callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
2086
+ post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void;
2087
+ post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void;
2088
+ post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2089
+ post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2090
+ post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2091
+ post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2092
+ post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
2093
+ post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void;
2094
+ post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void;
2277
2095
  post(
2278
- method: "HeapProfiler.getObjectByHeapObjectId",
2096
+ method: 'HeapProfiler.getObjectByHeapObjectId',
2279
2097
  params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
2280
2098
  callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
2281
2099
  ): void;
2282
- post(method: "HeapProfiler.getObjectByHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
2283
-
2100
+ post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
2284
2101
  /**
2285
2102
  * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
2286
2103
  */
2287
- post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
2288
- post(method: "HeapProfiler.addInspectedHeapObject", callback?: (err: Error | null) => void): void;
2289
-
2290
- post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2291
- post(method: "HeapProfiler.getHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2292
-
2293
- post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
2294
- post(method: "HeapProfiler.startSampling", callback?: (err: Error | null) => void): void;
2295
-
2296
- post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2297
-
2298
- post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2299
-
2104
+ post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
2105
+ post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void;
2106
+ post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2107
+ post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2108
+ post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
2109
+ post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void;
2110
+ post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2111
+ post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2300
2112
  /**
2301
2113
  * Gets supported tracing categories.
2302
2114
  */
2303
- post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2304
-
2115
+ post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2305
2116
  /**
2306
2117
  * Start trace events collection.
2307
2118
  */
2308
- post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2309
- post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
2310
-
2119
+ post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2120
+ post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void;
2311
2121
  /**
2312
2122
  * Stop trace events collection. Remaining collected events will be sent as a sequence of
2313
2123
  * dataCollected events followed by tracingComplete event.
2314
2124
  */
2315
- post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
2316
-
2125
+ post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void;
2317
2126
  /**
2318
2127
  * Sends protocol message over session with given id.
2319
2128
  */
2320
- post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2321
- post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
2322
-
2129
+ post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2130
+ post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void;
2323
2131
  /**
2324
2132
  * Instructs the inspector to attach to running workers. Will also attach to new workers
2325
2133
  * as they start
2326
2134
  */
2327
- post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2328
- post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
2329
-
2135
+ post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2136
+ post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void;
2330
2137
  /**
2331
2138
  * Detaches from all running workers and disables attaching to new workers as they are started.
2332
2139
  */
2333
- post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
2334
-
2140
+ post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void;
2335
2141
  /**
2336
2142
  * Detached from the worker with given sessionId.
2337
2143
  */
2338
- post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2339
- post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void;
2340
-
2144
+ post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2145
+ post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void;
2341
2146
  /**
2342
2147
  * Enable the `NodeRuntime.waitingForDisconnect`.
2343
2148
  */
2344
- post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2345
- post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void;
2346
-
2149
+ post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2150
+ post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void;
2347
2151
  // Events
2348
-
2349
2152
  addListener(event: string, listener: (...args: any[]) => void): this;
2350
-
2351
2153
  /**
2352
2154
  * Emitted when any notification from the V8 Inspector is received.
2353
2155
  */
2354
- addListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2355
-
2156
+ addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2356
2157
  /**
2357
2158
  * Issued when new execution context is created.
2358
2159
  */
2359
- addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2360
-
2160
+ addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2361
2161
  /**
2362
2162
  * Issued when execution context is destroyed.
2363
2163
  */
2364
- addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2365
-
2164
+ addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2366
2165
  /**
2367
2166
  * Issued when all executionContexts were cleared in browser
2368
2167
  */
2369
- addListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
2370
-
2168
+ addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2371
2169
  /**
2372
2170
  * Issued when exception was thrown and unhandled.
2373
2171
  */
2374
- addListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2375
-
2172
+ addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2376
2173
  /**
2377
2174
  * Issued when unhandled exception was revoked.
2378
2175
  */
2379
- addListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2380
-
2176
+ addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2381
2177
  /**
2382
2178
  * Issued when console API was called.
2383
2179
  */
2384
- addListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2385
-
2180
+ addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2386
2181
  /**
2387
2182
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2388
2183
  */
2389
- addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2390
-
2184
+ addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2391
2185
  /**
2392
2186
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2393
2187
  */
2394
- addListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2395
-
2188
+ addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2396
2189
  /**
2397
2190
  * Fired when virtual machine fails to parse the script.
2398
2191
  */
2399
- addListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2400
-
2192
+ addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2401
2193
  /**
2402
2194
  * Fired when breakpoint is resolved to an actual script and location.
2403
2195
  */
2404
- addListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2405
-
2196
+ addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2406
2197
  /**
2407
2198
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2408
2199
  */
2409
- addListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2410
-
2200
+ addListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2411
2201
  /**
2412
2202
  * Fired when the virtual machine resumed execution.
2413
2203
  */
2414
- addListener(event: "Debugger.resumed", listener: () => void): this;
2415
-
2204
+ addListener(event: 'Debugger.resumed', listener: () => void): this;
2416
2205
  /**
2417
2206
  * Issued when new console message is added.
2418
2207
  */
2419
- addListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2420
-
2208
+ addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2421
2209
  /**
2422
2210
  * Sent when new profile recording is started using console.profile() call.
2423
2211
  */
2424
- addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2425
-
2426
- addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2427
- addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2428
- addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2429
- addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2430
-
2212
+ addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2213
+ addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2214
+ addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2215
+ addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2216
+ addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2431
2217
  /**
2432
2218
  * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2433
2219
  */
2434
- addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2435
-
2220
+ addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2436
2221
  /**
2437
2222
  * If heap objects tracking has been started then backend may send update for one or more fragments
2438
2223
  */
2439
- addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2440
-
2224
+ addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2441
2225
  /**
2442
2226
  * Contains an bucket of collected trace events.
2443
2227
  */
2444
- addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2445
-
2228
+ addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2446
2229
  /**
2447
2230
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2448
2231
  * delivered via dataCollected events.
2449
2232
  */
2450
- addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2451
-
2233
+ addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2452
2234
  /**
2453
2235
  * Issued when attached to a worker.
2454
2236
  */
2455
- addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2456
-
2237
+ addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2457
2238
  /**
2458
2239
  * Issued when detached from the worker.
2459
2240
  */
2460
- addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2461
-
2241
+ addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2462
2242
  /**
2463
2243
  * Notifies about a new protocol message received from the session
2464
2244
  * (session ID is provided in attachedToWorker notification).
2465
2245
  */
2466
- addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2467
-
2246
+ addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2468
2247
  /**
2469
2248
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2470
2249
  * enabled.
2471
2250
  * It is fired when the Node process finished all code execution and is
2472
2251
  * waiting for all frontends to disconnect.
2473
2252
  */
2474
- addListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2475
-
2253
+ addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2476
2254
  emit(event: string | symbol, ...args: any[]): boolean;
2477
- emit(event: "inspectorNotification", message: InspectorNotification<{}>): boolean;
2478
- emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
2479
- emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
2480
- emit(event: "Runtime.executionContextsCleared"): boolean;
2481
- emit(event: "Runtime.exceptionThrown", message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
2482
- emit(event: "Runtime.exceptionRevoked", message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
2483
- emit(event: "Runtime.consoleAPICalled", message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
2484
- emit(event: "Runtime.inspectRequested", message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
2485
- emit(event: "Debugger.scriptParsed", message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
2486
- emit(event: "Debugger.scriptFailedToParse", message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
2487
- emit(event: "Debugger.breakpointResolved", message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
2488
- emit(event: "Debugger.paused", message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
2489
- emit(event: "Debugger.resumed"): boolean;
2490
- emit(event: "Console.messageAdded", message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
2491
- emit(event: "Profiler.consoleProfileStarted", message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
2492
- emit(event: "Profiler.consoleProfileFinished", message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
2493
- emit(event: "HeapProfiler.addHeapSnapshotChunk", message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
2494
- emit(event: "HeapProfiler.resetProfiles"): boolean;
2495
- emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2496
- emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2497
- emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2498
- emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2499
- emit(event: "NodeTracing.tracingComplete"): boolean;
2500
- emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2501
- emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2502
- emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2503
- emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
2504
-
2255
+ emit(event: 'inspectorNotification', message: InspectorNotification<{}>): boolean;
2256
+ emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
2257
+ emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
2258
+ emit(event: 'Runtime.executionContextsCleared'): boolean;
2259
+ emit(event: 'Runtime.exceptionThrown', message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
2260
+ emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
2261
+ emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
2262
+ emit(event: 'Runtime.inspectRequested', message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
2263
+ emit(event: 'Debugger.scriptParsed', message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
2264
+ emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
2265
+ emit(event: 'Debugger.breakpointResolved', message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
2266
+ emit(event: 'Debugger.paused', message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
2267
+ emit(event: 'Debugger.resumed'): boolean;
2268
+ emit(event: 'Console.messageAdded', message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
2269
+ emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
2270
+ emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
2271
+ emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
2272
+ emit(event: 'HeapProfiler.resetProfiles'): boolean;
2273
+ emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2274
+ emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2275
+ emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2276
+ emit(event: 'NodeTracing.dataCollected', message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2277
+ emit(event: 'NodeTracing.tracingComplete'): boolean;
2278
+ emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2279
+ emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2280
+ emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2281
+ emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
2505
2282
  on(event: string, listener: (...args: any[]) => void): this;
2506
-
2507
2283
  /**
2508
2284
  * Emitted when any notification from the V8 Inspector is received.
2509
2285
  */
2510
- on(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2511
-
2286
+ on(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2512
2287
  /**
2513
2288
  * Issued when new execution context is created.
2514
2289
  */
2515
- on(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2516
-
2290
+ on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2517
2291
  /**
2518
2292
  * Issued when execution context is destroyed.
2519
2293
  */
2520
- on(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2521
-
2294
+ on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2522
2295
  /**
2523
2296
  * Issued when all executionContexts were cleared in browser
2524
2297
  */
2525
- on(event: "Runtime.executionContextsCleared", listener: () => void): this;
2526
-
2298
+ on(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2527
2299
  /**
2528
2300
  * Issued when exception was thrown and unhandled.
2529
2301
  */
2530
- on(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2531
-
2302
+ on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2532
2303
  /**
2533
2304
  * Issued when unhandled exception was revoked.
2534
2305
  */
2535
- on(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2536
-
2306
+ on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2537
2307
  /**
2538
2308
  * Issued when console API was called.
2539
2309
  */
2540
- on(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2541
-
2310
+ on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2542
2311
  /**
2543
2312
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2544
2313
  */
2545
- on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2546
-
2314
+ on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2547
2315
  /**
2548
2316
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2549
2317
  */
2550
- on(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2551
-
2318
+ on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2552
2319
  /**
2553
2320
  * Fired when virtual machine fails to parse the script.
2554
2321
  */
2555
- on(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2556
-
2322
+ on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2557
2323
  /**
2558
2324
  * Fired when breakpoint is resolved to an actual script and location.
2559
2325
  */
2560
- on(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2561
-
2326
+ on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2562
2327
  /**
2563
2328
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2564
2329
  */
2565
- on(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2566
-
2330
+ on(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2567
2331
  /**
2568
2332
  * Fired when the virtual machine resumed execution.
2569
2333
  */
2570
- on(event: "Debugger.resumed", listener: () => void): this;
2571
-
2334
+ on(event: 'Debugger.resumed', listener: () => void): this;
2572
2335
  /**
2573
2336
  * Issued when new console message is added.
2574
2337
  */
2575
- on(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2576
-
2338
+ on(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2577
2339
  /**
2578
2340
  * Sent when new profile recording is started using console.profile() call.
2579
2341
  */
2580
- on(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2581
-
2582
- on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2583
- on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2584
- on(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2585
- on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2586
-
2342
+ on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2343
+ on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2344
+ on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2345
+ on(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2346
+ on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2587
2347
  /**
2588
2348
  * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2589
2349
  */
2590
- on(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2591
-
2350
+ on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2592
2351
  /**
2593
2352
  * If heap objects tracking has been started then backend may send update for one or more fragments
2594
2353
  */
2595
- on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2596
-
2354
+ on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2597
2355
  /**
2598
2356
  * Contains an bucket of collected trace events.
2599
2357
  */
2600
- on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2601
-
2358
+ on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2602
2359
  /**
2603
2360
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2604
2361
  * delivered via dataCollected events.
2605
2362
  */
2606
- on(event: "NodeTracing.tracingComplete", listener: () => void): this;
2607
-
2363
+ on(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2608
2364
  /**
2609
2365
  * Issued when attached to a worker.
2610
2366
  */
2611
- on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2612
-
2367
+ on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2613
2368
  /**
2614
2369
  * Issued when detached from the worker.
2615
2370
  */
2616
- on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2617
-
2371
+ on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2618
2372
  /**
2619
2373
  * Notifies about a new protocol message received from the session
2620
2374
  * (session ID is provided in attachedToWorker notification).
2621
2375
  */
2622
- on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2623
-
2376
+ on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2624
2377
  /**
2625
2378
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2626
2379
  * enabled.
2627
2380
  * It is fired when the Node process finished all code execution and is
2628
2381
  * waiting for all frontends to disconnect.
2629
2382
  */
2630
- on(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2631
-
2383
+ on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2632
2384
  once(event: string, listener: (...args: any[]) => void): this;
2633
-
2634
2385
  /**
2635
2386
  * Emitted when any notification from the V8 Inspector is received.
2636
2387
  */
2637
- once(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2638
-
2388
+ once(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2639
2389
  /**
2640
2390
  * Issued when new execution context is created.
2641
2391
  */
2642
- once(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2643
-
2392
+ once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2644
2393
  /**
2645
2394
  * Issued when execution context is destroyed.
2646
2395
  */
2647
- once(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2648
-
2396
+ once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2649
2397
  /**
2650
2398
  * Issued when all executionContexts were cleared in browser
2651
2399
  */
2652
- once(event: "Runtime.executionContextsCleared", listener: () => void): this;
2653
-
2400
+ once(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2654
2401
  /**
2655
2402
  * Issued when exception was thrown and unhandled.
2656
2403
  */
2657
- once(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2658
-
2404
+ once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2659
2405
  /**
2660
2406
  * Issued when unhandled exception was revoked.
2661
2407
  */
2662
- once(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2663
-
2408
+ once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2664
2409
  /**
2665
2410
  * Issued when console API was called.
2666
2411
  */
2667
- once(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2668
-
2412
+ once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2669
2413
  /**
2670
2414
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2671
2415
  */
2672
- once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2673
-
2416
+ once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2674
2417
  /**
2675
2418
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2676
2419
  */
2677
- once(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2678
-
2420
+ once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2679
2421
  /**
2680
2422
  * Fired when virtual machine fails to parse the script.
2681
2423
  */
2682
- once(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2683
-
2424
+ once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2684
2425
  /**
2685
2426
  * Fired when breakpoint is resolved to an actual script and location.
2686
2427
  */
2687
- once(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2688
-
2428
+ once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2689
2429
  /**
2690
2430
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2691
2431
  */
2692
- once(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2693
-
2432
+ once(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2694
2433
  /**
2695
2434
  * Fired when the virtual machine resumed execution.
2696
2435
  */
2697
- once(event: "Debugger.resumed", listener: () => void): this;
2698
-
2436
+ once(event: 'Debugger.resumed', listener: () => void): this;
2699
2437
  /**
2700
2438
  * Issued when new console message is added.
2701
2439
  */
2702
- once(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2703
-
2440
+ once(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2704
2441
  /**
2705
2442
  * Sent when new profile recording is started using console.profile() call.
2706
2443
  */
2707
- once(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2708
-
2709
- once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2710
- once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2711
- once(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2712
- once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2713
-
2444
+ once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2445
+ once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2446
+ once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2447
+ once(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2448
+ once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2714
2449
  /**
2715
2450
  * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2716
2451
  */
2717
- once(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2718
-
2452
+ once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2719
2453
  /**
2720
2454
  * If heap objects tracking has been started then backend may send update for one or more fragments
2721
2455
  */
2722
- once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2723
-
2456
+ once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2724
2457
  /**
2725
2458
  * Contains an bucket of collected trace events.
2726
2459
  */
2727
- once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2728
-
2460
+ once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2729
2461
  /**
2730
2462
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2731
2463
  * delivered via dataCollected events.
2732
2464
  */
2733
- once(event: "NodeTracing.tracingComplete", listener: () => void): this;
2734
-
2465
+ once(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2735
2466
  /**
2736
2467
  * Issued when attached to a worker.
2737
2468
  */
2738
- once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2739
-
2469
+ once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2740
2470
  /**
2741
2471
  * Issued when detached from the worker.
2742
2472
  */
2743
- once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2744
-
2473
+ once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2745
2474
  /**
2746
2475
  * Notifies about a new protocol message received from the session
2747
2476
  * (session ID is provided in attachedToWorker notification).
2748
2477
  */
2749
- once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2750
-
2478
+ once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2751
2479
  /**
2752
2480
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2753
2481
  * enabled.
2754
2482
  * It is fired when the Node process finished all code execution and is
2755
2483
  * waiting for all frontends to disconnect.
2756
2484
  */
2757
- once(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2758
-
2485
+ once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2759
2486
  prependListener(event: string, listener: (...args: any[]) => void): this;
2760
-
2761
2487
  /**
2762
2488
  * Emitted when any notification from the V8 Inspector is received.
2763
2489
  */
2764
- prependListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2765
-
2490
+ prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2766
2491
  /**
2767
2492
  * Issued when new execution context is created.
2768
2493
  */
2769
- prependListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2770
-
2494
+ prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2771
2495
  /**
2772
2496
  * Issued when execution context is destroyed.
2773
2497
  */
2774
- prependListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2775
-
2498
+ prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2776
2499
  /**
2777
2500
  * Issued when all executionContexts were cleared in browser
2778
2501
  */
2779
- prependListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
2780
-
2502
+ prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2781
2503
  /**
2782
2504
  * Issued when exception was thrown and unhandled.
2783
2505
  */
2784
- prependListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2785
-
2506
+ prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2786
2507
  /**
2787
2508
  * Issued when unhandled exception was revoked.
2788
2509
  */
2789
- prependListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2790
-
2510
+ prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2791
2511
  /**
2792
2512
  * Issued when console API was called.
2793
2513
  */
2794
- prependListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2795
-
2514
+ prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2796
2515
  /**
2797
2516
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2798
2517
  */
2799
- prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2800
-
2518
+ prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2801
2519
  /**
2802
2520
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2803
2521
  */
2804
- prependListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2805
-
2522
+ prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2806
2523
  /**
2807
2524
  * Fired when virtual machine fails to parse the script.
2808
2525
  */
2809
- prependListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2810
-
2526
+ prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2811
2527
  /**
2812
2528
  * Fired when breakpoint is resolved to an actual script and location.
2813
2529
  */
2814
- prependListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2815
-
2530
+ prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2816
2531
  /**
2817
2532
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2818
2533
  */
2819
- prependListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2820
-
2534
+ prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2821
2535
  /**
2822
2536
  * Fired when the virtual machine resumed execution.
2823
2537
  */
2824
- prependListener(event: "Debugger.resumed", listener: () => void): this;
2825
-
2538
+ prependListener(event: 'Debugger.resumed', listener: () => void): this;
2826
2539
  /**
2827
2540
  * Issued when new console message is added.
2828
2541
  */
2829
- prependListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2830
-
2542
+ prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2831
2543
  /**
2832
2544
  * Sent when new profile recording is started using console.profile() call.
2833
2545
  */
2834
- prependListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2835
-
2836
- prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2837
- prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2838
- prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2839
- prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2840
-
2546
+ prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2547
+ prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2548
+ prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2549
+ prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2550
+ prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2841
2551
  /**
2842
2552
  * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2843
2553
  */
2844
- prependListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2845
-
2554
+ prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2846
2555
  /**
2847
2556
  * If heap objects tracking has been started then backend may send update for one or more fragments
2848
2557
  */
2849
- prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2850
-
2558
+ prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2851
2559
  /**
2852
2560
  * Contains an bucket of collected trace events.
2853
2561
  */
2854
- prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2855
-
2562
+ prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2856
2563
  /**
2857
2564
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2858
2565
  * delivered via dataCollected events.
2859
2566
  */
2860
- prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2861
-
2567
+ prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2862
2568
  /**
2863
2569
  * Issued when attached to a worker.
2864
2570
  */
2865
- prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2866
-
2571
+ prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2867
2572
  /**
2868
2573
  * Issued when detached from the worker.
2869
2574
  */
2870
- prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2871
-
2575
+ prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2872
2576
  /**
2873
2577
  * Notifies about a new protocol message received from the session
2874
2578
  * (session ID is provided in attachedToWorker notification).
2875
2579
  */
2876
- prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2877
-
2580
+ prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2878
2581
  /**
2879
2582
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2880
2583
  * enabled.
2881
2584
  * It is fired when the Node process finished all code execution and is
2882
2585
  * waiting for all frontends to disconnect.
2883
2586
  */
2884
- prependListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2885
-
2587
+ prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2886
2588
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
2887
-
2888
2589
  /**
2889
2590
  * Emitted when any notification from the V8 Inspector is received.
2890
2591
  */
2891
- prependOnceListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
2892
-
2592
+ prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2893
2593
  /**
2894
2594
  * Issued when new execution context is created.
2895
2595
  */
2896
- prependOnceListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2897
-
2596
+ prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2898
2597
  /**
2899
2598
  * Issued when execution context is destroyed.
2900
2599
  */
2901
- prependOnceListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2902
-
2600
+ prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2903
2601
  /**
2904
2602
  * Issued when all executionContexts were cleared in browser
2905
2603
  */
2906
- prependOnceListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
2907
-
2604
+ prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2908
2605
  /**
2909
2606
  * Issued when exception was thrown and unhandled.
2910
2607
  */
2911
- prependOnceListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2912
-
2608
+ prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2913
2609
  /**
2914
2610
  * Issued when unhandled exception was revoked.
2915
2611
  */
2916
- prependOnceListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2917
-
2612
+ prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2918
2613
  /**
2919
2614
  * Issued when console API was called.
2920
2615
  */
2921
- prependOnceListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2922
-
2616
+ prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2923
2617
  /**
2924
2618
  * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2925
2619
  */
2926
- prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2927
-
2620
+ prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2928
2621
  /**
2929
2622
  * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2930
2623
  */
2931
- prependOnceListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2932
-
2624
+ prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2933
2625
  /**
2934
2626
  * Fired when virtual machine fails to parse the script.
2935
2627
  */
2936
- prependOnceListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2937
-
2628
+ prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2938
2629
  /**
2939
2630
  * Fired when breakpoint is resolved to an actual script and location.
2940
2631
  */
2941
- prependOnceListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2942
-
2632
+ prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2943
2633
  /**
2944
2634
  * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2945
2635
  */
2946
- prependOnceListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2947
-
2636
+ prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2948
2637
  /**
2949
2638
  * Fired when the virtual machine resumed execution.
2950
2639
  */
2951
- prependOnceListener(event: "Debugger.resumed", listener: () => void): this;
2952
-
2640
+ prependOnceListener(event: 'Debugger.resumed', listener: () => void): this;
2953
2641
  /**
2954
2642
  * Issued when new console message is added.
2955
2643
  */
2956
- prependOnceListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2957
-
2644
+ prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2958
2645
  /**
2959
2646
  * Sent when new profile recording is started using console.profile() call.
2960
2647
  */
2961
- prependOnceListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2962
-
2963
- prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2964
- prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2965
- prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
2966
- prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2967
-
2648
+ prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2649
+ prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2650
+ prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2651
+ prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2652
+ prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2968
2653
  /**
2969
2654
  * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2970
2655
  */
2971
- prependOnceListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2972
-
2656
+ prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2973
2657
  /**
2974
2658
  * If heap objects tracking has been started then backend may send update for one or more fragments
2975
2659
  */
2976
- prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2977
-
2660
+ prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2978
2661
  /**
2979
2662
  * Contains an bucket of collected trace events.
2980
2663
  */
2981
- prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2982
-
2664
+ prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2983
2665
  /**
2984
2666
  * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2985
2667
  * delivered via dataCollected events.
2986
2668
  */
2987
- prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2988
-
2669
+ prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2989
2670
  /**
2990
2671
  * Issued when attached to a worker.
2991
2672
  */
2992
- prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2993
-
2673
+ prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2994
2674
  /**
2995
2675
  * Issued when detached from the worker.
2996
2676
  */
2997
- prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2998
-
2677
+ prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2999
2678
  /**
3000
2679
  * Notifies about a new protocol message received from the session
3001
2680
  * (session ID is provided in attachedToWorker notification).
3002
2681
  */
3003
- prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3004
-
2682
+ prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3005
2683
  /**
3006
2684
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3007
2685
  * enabled.
3008
2686
  * It is fired when the Node process finished all code execution and is
3009
2687
  * waiting for all frontends to disconnect.
3010
2688
  */
3011
- prependOnceListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this;
2689
+ prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
3012
2690
  }
3013
-
3014
- // Top Level API
3015
-
3016
2691
  /**
3017
- * Activate inspector on host and port. Equivalent to node --inspect=[[host:]port], but can be done programatically after node has started.
3018
- * If wait is true, will block until a client has connected to the inspect port and flow control has been passed to the debugger client.
3019
- * @param port Port to listen on for inspector connections. Optional, defaults to what was specified on the CLI.
3020
- * @param host Host to listen on for inspector connections. Optional, defaults to what was specified on the CLI.
3021
- * @param wait Block until a client has connected. Optional, defaults to false.
2692
+ * Activate inspector on host and port. Equivalent to`node --inspect=[[host:]port]`, but can be done programmatically after node has
2693
+ * started.
2694
+ *
2695
+ * If wait is `true`, will block until a client has connected to the inspect port
2696
+ * and flow control has been passed to the debugger client.
2697
+ *
2698
+ * See the `security warning` regarding the `host`parameter usage.
2699
+ * @param [port='what was specified on the CLI'] Port to listen on for inspector connections. Optional.
2700
+ * @param [host='what was specified on the CLI'] Host to listen on for inspector connections. Optional.
2701
+ * @param [wait=false] Block until a client has connected. Optional.
3022
2702
  */
3023
2703
  function open(port?: number, host?: string, wait?: boolean): void;
3024
-
3025
2704
  /**
3026
2705
  * Deactivate the inspector. Blocks until there are no active connections.
3027
2706
  */
3028
2707
  function close(): void;
3029
-
3030
2708
  /**
3031
2709
  * Return the URL of the active inspector, or `undefined` if there is none.
2710
+ *
2711
+ * ```console
2712
+ * $ node --inspect -p 'inspector.url()'
2713
+ * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2714
+ * For help, see: https://nodejs.org/en/docs/inspector
2715
+ * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2716
+ *
2717
+ * $ node --inspect=localhost:3000 -p 'inspector.url()'
2718
+ * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2719
+ * For help, see: https://nodejs.org/en/docs/inspector
2720
+ * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2721
+ *
2722
+ * $ node -p 'inspector.url()'
2723
+ * undefined
2724
+ * ```
3032
2725
  */
3033
2726
  function url(): string | undefined;
3034
-
3035
2727
  /**
3036
- * Blocks until a client (existing or connected later) has sent
3037
- * `Runtime.runIfWaitingForDebugger` command.
2728
+ * Blocks until a client (existing or connected later) has sent`Runtime.runIfWaitingForDebugger` command.
2729
+ *
3038
2730
  * An exception will be thrown if there is no active inspector.
2731
+ * @since v12.7.0
3039
2732
  */
3040
2733
  function waitForDebugger(): void;
3041
2734
  }
2735
+ /**
2736
+ * The inspector module provides an API for interacting with the V8 inspector.
2737
+ */
2738
+ declare module 'node:inspector' {
2739
+ import inspector = require('inspector');
2740
+ export = inspector;
2741
+ }