Skip to content

Commit babe2f4

Browse files
committed
(feat:TS) add type to createHistoryList()
1 parent 96d2073 commit babe2f4

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
@@ -316,7 +316,7 @@ function displayResult(array: string[], outcome: string) {
316316
array.push(outcome);
317317
}
318318

319-
function createHistoryList(entries: any, element:any) {
319+
function createHistoryList(entries: string[], element: HTMLElement) {
320320
element.innerHTML = "";
321321
entries
322322
.slice(-10)

0 commit comments

Comments
 (0)