improve types

This commit is contained in:
Philipp Kühn
2021-01-28 09:50:17 +01:00
parent a9c14fbddd
commit 4407d9a3d1
20 changed files with 58 additions and 47 deletions

View File

@@ -1,4 +1,4 @@
export default function removeElement(element: HTMLElement) {
export default function removeElement(element: HTMLElement): void {
if (element && element.parentNode) {
element.parentNode.removeChild(element)
}