Skip to content

Commit be0879e

Browse files
committed
(feat:TS) add type to setHistoryToLocalStorage()
1 parent ab20d33 commit be0879e

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
@@ -332,7 +332,7 @@ function getHistoryFromLocalStorage() {
332332
return JSON.parse(localStorage.getItem("calculatorHistory") || "[]");
333333
}
334334

335-
function setHistoryToLocalStorage(history: any) {
335+
function setHistoryToLocalStorage(history: string[]) {
336336
localStorage.setItem("calculatorHistory", JSON.stringify(history.slice(-10)));
337337
}
338338

0 commit comments

Comments
 (0)