bug: `autofocus` prop/attr is defined on other HTML attribute types instead of `HTMLAttributes`
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already report this problem, without success.
Stencil Version
4.17.2
Current Behavior
Setting the global autofocus attribute/prop will cause TypeScript to complain about missing definition.
The following codepen shows that custom elements inherit it from HTMLElement.
Expected Behavior
For autofocus prop/attr to be included in the base Stencil HTML attr/prop types.
System Info
No response
Steps to Reproduce
Follow provided steps in repro case.
Code Reproduction URL
https://github.com/jcfranco/stencil-autofocus-missing-on-base-html-attr-type
Additional Information
This could apply to other global attributes.
Hey @jcfranco 👋
Thanks for the bug report!
I wasn't able to see the build failure you were describing, but was able to see errors in my editor related to the type checker (see the screenshot below).
Regardless, I think this is a reasonable request/bug/thing we can fix. I see #5727 - I'll discuss that with the team internally today.
Thanks again!
A fix for this was included in today's v4.18.2 release!