File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
- import type { Step , UserFlow } from "@puppeteer/replay"
1
+ import type { UserFlow } from "@puppeteer/replay"
2
2
3
3
export class RecorderPlugin {
4
4
async stringify ( recording : UserFlow ) {
5
5
return JSON . stringify ( recording , null , 2 )
6
6
}
7
- async stringifyStep ( step : Step ) {
8
- return JSON . stringify ( step , null , 2 )
9
- }
10
7
}
11
8
12
9
chrome . devtools . recorder . registerRecorderExtensionPlugin (
Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ declare global {
15
15
* Converts a step of the recording from the Recorder panel format into a string.
16
16
* @param step A step of the recording of a user interaction with the page.
17
17
*/
18
- stringifyStep ( step : Step ) : Promise < string >
18
+ stringifyStep ? ( step : Step ) : Promise < string >
19
19
}
20
20
21
21
/**
22
22
* Registers a Recorder extension plugin.
23
23
* @param plugin An instance implementing the `RecorderExtensionPlugin` interface.
24
- * @param name The name of the plugin.
25
- * @param mediaType The media type of the string content that the plugin produces.
24
+ * @param [ name] The name of the plugin.
25
+ * @param [ mediaType="text/plain"] The media type of the string content that the plugin produces.
26
26
*/
27
27
function registerRecorderExtensionPlugin (
28
28
plugin : RecorderExtensionPlugin ,
29
- name : string ,
30
- mediaType : string ,
29
+ name ? : string ,
30
+ mediaType ? : string ,
31
31
) : void
32
32
}
33
33
}
You can’t perform that action at this time.
0 commit comments