Replies: 2 comments 1 reply
-
You can do class MyElement extends LitElement implements Props {
} e.g. playground example |
Beta Was this translation helpful? Give feedback.
1 reply
-
The reason why there's no "props" concept in Lit as in React is that custom elements are objects with numerous properties that can be set, so at the limit the "props" type would be the class interface itself. Filtering the interface by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want my
LitElement
to use myProps
type as properties. How can I do that ? I cannot see anything in the documentation regarding that.Beta Was this translation helpful? Give feedback.
All reactions