I am facing a challenge with my package, which relies on a 3rd party package API for most of its functions. How can I export the types from the 3rd party package API in my own package?
For instance:
- React uses @types/react to define its types
- Let's say we have a custom package called ReactWrapper and we want to consistently utilize the @types/react types and include them as part of our own package.
This raises the question of how to leverage and repurpose existing types from a 3rd party package.