ktoś wie jak rzucić na maszynie?
Próbuję to zrobić:
var script:HTMLScriptElement = document.getElementsByName(script)[0];
alert(script.type);
ale to daje mi błąd:
Cannot convert 'Node' to 'HTMLScriptElement': Type 'Node' is missing property 'defer' from type 'HTMLScriptElement'
(elementName: string) => NodeList
Nie mogę wejść do „typ” członek elementu skryptu chyba rzucę go do odpowiedniego typu, ale nie wiem jak to zrobić. Szukałem Dokumenty i próbek, ale nie mogłem znaleźć niczego.













