Helper functions to create HTML elements in Javascript / Typescript
function el (tag: string): HTMLElement
type StylesObject = { [key: string]: string | StylesObject }
function styled (tag: string, styles: StylesObject): HTMLElement
function h1 (styles?: StylesObject): HTMLDivElement
div
span
h1
h2
p
input
button
function add_class (element: HTMLElement, className: string): void
function remove_class (element: HTMLElement, className: string): void
function style (element: HTMLElement, styles: StylesObject): void
function restyle (element: HTMLElement, styles: StylesObject): void
function add_text (element: HTMLElement, text: string): void
function remove_text (element: HTMLElement, textNode?: Text): void