Open nikita-rudenko opened 6 months ago
"computed types" like these, generics, and other TS functions are difficult for the analyzer to parse. I haven't found a good way to do that yet.
Out of curiosity if you set it to a new type, does it work?
type ButtonVariants = ButtonProps["variant"];
export class Button extends LitElement {
@property({ type: String })
variant: ButtonVariants = "primary";
...
Let's say in a file with Lit component I have an interface that describes props:
Then I reference it for a property:
There is no
expandedType
generated incustom-elements.json
. The result looks like this:Expected result: