Skip to content

Commit ebedfe0

Browse files
committed
Use TypeScript
1 parent 7643306 commit ebedfe0

File tree

6 files changed

+1453
-6
lines changed

6 files changed

+1453
-6
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ typings/
4747
# TypeScript cache
4848
*.tsbuildinfo
4949

50+
# TypeScript output files
51+
*.js
52+
5053
# Optional npm cache directory
5154
.npm
5255

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
import { Step, UserFlow } from "@puppeteer/replay"
2+
13
export class RecorderPlugin {
2-
async stringify(recording) {
4+
async stringify(recording: UserFlow) {
35
return JSON.stringify(recording, null, 2)
46
}
5-
async stringifyStep(step) {
7+
async stringifyStep(step: Step) {
68
return JSON.stringify(step, null, 2)
79
}
810
}
911

1012
chrome.devtools.recorder.registerRecorderExtensionPlugin(
1113
new RecorderPlugin(),
12-
/* name=*/ "Testing Library",
13-
/* mediaType=*/ "application/json",
14+
"Testing Library",
15+
"application/json",
1416
)

0 commit comments

Comments
 (0)