Skip to content
New issue

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

Extending LionTooltip results in typescript error #2009

Open
nbamfordcirium opened this issue Jun 10, 2023 · 0 comments
Open

Extending LionTooltip results in typescript error #2009

nbamfordcirium opened this issue Jun 10, 2023 · 0 comments

Comments

@nbamfordcirium
Copy link

Expected behavior

Extended LionTooltip passes typescript check

Actual Behavior

Typescript reports error: Argument of type 'typeof DemoTooltip' is not assignable to parameter of type 'CustomElementConstructor'. Type 'DemoTooltip' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 285 more.

Note this is true whether using customElements.define or the @customElement decorator

I wasn't getting this error until I started using nodeResolution: node16 in my tsconfig.json, fwiw.

https://studio.webcomponents.dev/edit/e2piadZEBV3zH1SlO2XK

The above repo won't run on since I'm not sure how to enable typescript there (or if it's even possible), but it gets the error locally if you run npm run check-types

Additional context

lion-tooltip 0.24.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant