I have a library where I want to create a button for all the different frameworks out there. All of those components props should have a single source of truth from a Typescript interface:
interface BaseButton {
tiny: boolean;
color: string;
}
How can I make sure that my Lit element properties are properly typed according to that interface?
@customElement("my-button")
export class MyButton extends LitElement {
@property({ type: Boolean })
tiny = true;
@property({ type: String })
color = "red";
....
}