When we upgraded various lit-Components to version 2.1.1
"lit": "2.1.1"
, a TypeScript error surfaced:
The argument 'typeof MyComponent' cannot be assigned to a parameter of type 'CustomElementConstructor'. The 'MyComponent' type is missing essential properties like accessKey, accessKeyLabel, autocapitalize, dir, and many more.
import { html, css, LitElement } from 'lit';
export default class MyComponent extends LitElement {...}
customElements.define('my-component', MyComponent);
Everything seems to be running smoothly - could this be an issue with lit itself?