I am getting this error with v1.6.3 with the following code:
document.querySelector('body>section.container').innerHTML // error: TS2339
To remedy it, I had to explicitly cast it as HTMLElement:
(<HTMLElement>document.querySelector('body>section.container')).innerHTML // it works!
However, innerHTML is supported by Element interface:
https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML.
I am getting this error with
v1.6.3with the following code:To remedy it, I had to explicitly cast it as
HTMLElement:However,
innerHTMLis supported byElementinterface:https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML.