The following TypeScript fails to compile:
let svg = document.createElement("svg");
svg.width = 300;
Due to the error Property 'width' does not exist on type 'HTMLElement'. But if I change svg to canvas, for example, then it does compile, so it's something about SVGs specifically it seems...
Any ideas?