Replies: 1 comment
-
I see I could use still this looks unnecessarily hard and unintuitive |
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
-
Hi
I'm not sure how one would create a wrapper component for a generic component
for example, I have a generic Table that infers the types for it's fields from a prop
then provides type hints for the slots scope
Here is a few screenshots (I'm using
F
fromts-toolbelt
):Now, I have a more advanced table, which gets data from the backend, I still want to get the type hints for the slots based on the given fields
but I just can't find a way to do it
if I duplicate the types I showed in screenshots and try to pass fields and items to the Table component, it fails:
so any idea would be helpful
Beta Was this translation helpful? Give feedback.
All reactions