Skip to content

Commit 67d0354

Browse files
committed
fix: update handleKeyPress function to use KeyboardEvent type
1 parent 11df5fa commit 67d0354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ window.addEventListener("DOMContentLoaded", () => {
3030
createHistoryList(history, historyElement);
3131
});
3232

33-
function handleKeyPress(event: any) {
33+
function handleKeyPress(event: KeyboardEvent) {
3434
const key = event.key;
3535
const button = document.querySelector(`[data-value="${key}"]`) as HTMLElement;
3636
if (button) {

0 commit comments

Comments
 (0)