How to assert a type of an HTMLElement in TypeScript?
I’m trying to do this: var script:HTMLScriptElement = document.getElementsByName(“script”)[0]; alert(script.type); but it’s giving me an error: Cannot convert ‘Node’ to ‘HTMLScriptElement’: Type ‘Node’ … Read more