We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
template.host
https://github.com/salesforce/lwc/blob/master/packages/%40lwc/engine/types/engine.d.ts has incorrect typings for template.host
Create a new typescript project with LWC. Try to access this.template.host in connectedCallback
this.template.host
connectedCallback
Expected: this.template.host should be cast as either null | HTMLElement
null | HTMLElement
Actual: this.template.host is always null: https://github.com/salesforce/lwc/blob/master/packages/%40lwc/engine/types/engine.d.ts#L88
The text was updated successfully, but these errors were encountered:
fix(engine): types definition update fixes #1006
c675b2c
It can never be null since this is a hard reference to the host that you can disconnect.
Sorry, something went wrong.
ee0ad9c
caridy
No branches or pull requests
Description
https://github.com/salesforce/lwc/blob/master/packages/%40lwc/engine/types/engine.d.ts has incorrect typings for
template.host
Steps to Reproduce
Create a new typescript project with LWC. Try to access
this.template.host
inconnectedCallback
Expected:
this.template.host
should be cast as eithernull | HTMLElement
Actual:
this.template.host
is always null: https://github.com/salesforce/lwc/blob/master/packages/%40lwc/engine/types/engine.d.ts#L88The text was updated successfully, but these errors were encountered: