How do you export Typebox types from a package? #965
Unanswered
paulius-valiunas
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
-
Let's say I want to have a package that uses Typebox internally for automated type guards etc., but I also want to give my consumers a choice not to install Typebox if they don't want to. That means I want to export the same types as plain Typescript types that are not derived from Typebox. Is there a code generation tool that could generate Typescript types from Typebox definitions? I have only seen one that works the other way around.
As a broader question, how do people usually export their Typebox types? Do they declare Typebox as a peerDependency?
Beta Was this translation helpful? Give feedback.
All reactions