Typing theme component properties #8483
Unanswered
samturrell
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
I'm looking into how to better type the component configs when modifying the theme.
With this example i get the correct typing for the component, but it requires that you provide all of the current properties, and doesn't allow additional properties:
With the following i get full typehinting, but not specific to a single component
Is there a way to get the best of both worlds here? I.e. provide the shape of the component config, but also allow the additional styling props to be defined?
Beta Was this translation helpful? Give feedback.
All reactions