@@ -70,11 +70,11 @@ export class CDPConnection extends WebSocketConnection {
70
70
/**
71
71
* Send an error back to the CDP client.
72
72
*
73
- * @param {Number } id
73
+ * @param {number } id
74
74
* Id of the packet which lead to an error.
75
75
* @param {Error } err
76
76
* Error object with `message` and `stack` attributes.
77
- * @param {String = } sessionId
77
+ * @param {string = } sessionId
78
78
* Id of the session used to send this packet. Falls back to the
79
79
* default session if not specified.
80
80
*/
@@ -90,12 +90,12 @@ export class CDPConnection extends WebSocketConnection {
90
90
/**
91
91
* Send an event coming from a Domain to the CDP client.
92
92
*
93
- * @param {String } method
93
+ * @param {string } method
94
94
* The event name. This is composed by a domain name, a dot character
95
95
* followed by the event name, e.g. `Target.targetCreated`.
96
- * @param {Object } params
96
+ * @param {object } params
97
97
* A JSON-serializable object, which is the payload of this event.
98
- * @param {String = } sessionId
98
+ * @param {string = } sessionId
99
99
* The sessionId from which this packet is emitted. Falls back to the
100
100
* default session if not specified.
101
101
*/
@@ -129,9 +129,9 @@ export class CDPConnection extends WebSocketConnection {
129
129
/**
130
130
* Interpret a given CDP packet for a given Session.
131
131
*
132
- * @param {String } sessionId
132
+ * @param {string } sessionId
133
133
* ID of the session for which we should execute a command.
134
- * @param {String } message
134
+ * @param {string } message
135
135
* The stringified JSON payload of the CDP packet, which is about
136
136
* executing a Domain's function.
137
137
*/
@@ -158,11 +158,11 @@ export class CDPConnection extends WebSocketConnection {
158
158
/**
159
159
* Send the result of a call to a Domain's function back to the CDP client.
160
160
*
161
- * @param {Number } id
161
+ * @param {number } id
162
162
* The request id being sent by the client to call the domain's method.
163
- * @param {Object } result
163
+ * @param {object } result
164
164
* A JSON-serializable object, which is the actual result.
165
- * @param {String = } sessionId
165
+ * @param {string = } sessionId
166
166
* The sessionId from which this packet is emitted. Falls back to the
167
167
* default session if not specified.
168
168
*/
@@ -208,7 +208,7 @@ export class CDPConnection extends WebSocketConnection {
208
208
* This packet is sent by a CDP client and is meant to execute
209
209
* a particular function on a given Domain.
210
210
*
211
- * @param {Object } packet
211
+ * @param {object } packet
212
212
* JSON-serializable object sent by the client.
213
213
*/
214
214
async onPacket ( packet ) {
@@ -269,10 +269,10 @@ export class CDPConnection extends WebSocketConnection {
269
269
/**
270
270
* Splits a CDP method into domain and command components.
271
271
*
272
- * @param {String } method
272
+ * @param {string } method
273
273
* Name of the method to split, e.g. "Browser.getVersion".
274
274
*
275
- * @returns {Object<String, String > }
275
+ * @returns {Object<string, string > }
276
276
* Object with the domain ("Browser") and command ("getVersion")
277
277
* as properties.
278
278
*/
0 commit comments