Вопросы по теме 'typescript-lib-dom'

Как утверждать тип HTMLElement в TypeScript?
Я пытаюсь это сделать: var script:HTMLScriptElement = document.getElementsByName("script")[0]; alert(script.type); но это дает мне ошибку: Cannot convert 'Node' to 'HTMLScriptElement': Type 'Node' is missing property 'defer' from...
209199 просмотров