Skip to content

Commit eb44a7a

Browse files
muandgraham
andauthored
Apply suggestions from code review
Co-authored-by: David Graham <[email protected]>
1 parent 18a6ef5 commit eb44a7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getButtons(toolbar: Element): HTMLElement[] {
4141
return els
4242
}
4343

44-
function keydown(fn: (arg0: KeyboardEvent) => void): (arg0: KeyboardEvent) => void {
44+
function keydown(fn: (event: KeyboardEvent) => void): (event: KeyboardEvent) => void {
4545
return function (event: KeyboardEvent) {
4646
if (event.key === ' ' || event.key === 'Enter') {
4747
event.preventDefault()

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"module": "esnext",
3+
"module": "es2020",
44
"target": "es2017",
55
"strict": true,
66
"declaration": true,

0 commit comments

Comments
 (0)