Current State
Coming out of #229 , had to manually extend our types to support popovertarget and popovertargetaction explicitly. However, per the spec it should really only apply to <button> and <input> elements.
Desired State
This should work
<button popovertarget="mobile-menu" popovertargetaction="hide">
Close
</button>
But this should error
<span popovertarget="mobile-menu">Close</span>
Additional Context
Curious in general though why it doesn't work? Shouldn't TypeScript's DOM lib support this already? 🤔
https://github.com/microsoft/TypeScript-DOM-lib-generator
Current State
Coming out of #229 , had to manually extend our types to support
popovertargetandpopovertargetactionexplicitly. However, per the spec it should really only apply to<button>and<input>elements.Desired State
This should work
But this should error
Additional Context
Curious in general though why it doesn't work? Shouldn't TypeScript's DOM lib support this already? 🤔
https://github.com/microsoft/TypeScript-DOM-lib-generator