You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
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
decoratorI wasn't getting this error until I started using
nodeResolution: node16
in mytsconfig.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
The text was updated successfully, but these errors were encountered: