Exporting all types? #104
rob-gordon
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Sorry, I don’t think this is something I want to export unless it’s something I feel comfortable maintaining Keeping it internal allows for more flexibility at the moment Happy to reconsider later |
Beta Was this translation helpful? Give feedback.
3 replies
-
I think this would be a great addition to CVA. I have also created typesafe extension utilities for CVA, and currently I have to redefine all the internal types. I think CVA is a really composable library fundamentally, but without also exposing the type definitions of its data structure, that composability will be limited to javascript only. |
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'm building some cool things around cva but one thing that makes it difficult is that only some of the types are exported from the library. Would there be any harm in exporting all of the internal types? Especially Class Value and Config.
That would make it easier to extend cva or use it in different ways but maintain type-safety. I'm happy to open a PR if the maintainers are alright with it 👍🏻
Beta Was this translation helpful? Give feedback.
All reactions