Skip to content

Commit 4a3d711

Browse files
committed
(feat:TS) add type to forEach in createHistoryList()
1 parent babe2f4 commit 4a3d711

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
@@ -321,7 +321,7 @@ function createHistoryList(entries: string[], element: HTMLElement) {
321321
entries
322322
.slice(-10)
323323
.reverse()
324-
.forEach((entry: any) => {
324+
.forEach((entry: string) => {
325325
const listItem = document.createElement("li");
326326
listItem.textContent = entry;
327327
element.appendChild(listItem);

0 commit comments

Comments
 (0)