What I'm trying to tell you is that the TS compiler ain't gonna be happy. You can either turn it off by laboriously casting or
@ts-ignoring
every place you use that type, or you can rewrite your code to work with it. As for the JS working fine, if I saw that in a code review I'd flag it and tell you to use
customElements.define
to properly extend an HTML element. As to whether or not it's worth the effort to change it (particularly if it's already in production as-is) is a call you're going to have to make, but I've already shown you the path if you choose to do so. —
Jared Smith 54 secs ago