You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getInnerText.js:5:28,39: property innerText
Property not found in .../lib/dom.js:272:1,299:1: Element
getInnerText.js:5:28,39: property innerText
Property not found in .../lib/dom.js:301:1,316:1: HTMLElement
Indeed, innerText is non-standard, but how do I get around this?
The text was updated successfully, but these errors were encountered:
it wasn't possible at the time, but now you can downcast to any: ((el : any).innerText : string)
I think the more general solution will be to let you extend the built-in types (#396) so you can add this property if you want to allow it, without allowing it in other environments.
The following code
outputs
Indeed,
innerText
is non-standard, but how do I get around this?The text was updated successfully, but these errors were encountered: