Skip to content

Commit ab20d33

Browse files
committed
(feat:TS) add type to togglesClearHistoryButton()
1 parent 4a3d711 commit ab20d33

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
@@ -346,7 +346,7 @@ function clearHistoryInLocalStorage() {
346346
localStorage.removeItem("calculatorHistory");
347347
}
348348

349-
function togglesClearHistoryButton(element: any) {
349+
function togglesClearHistoryButton(element: HTMLElement) {
350350
clearHistoryBtn.classList.toggle("display", element.childElementCount > 0);
351351
}
352352
// functions creations ends

0 commit comments

Comments
 (0)