Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export TypeScript Types #184

Open
fishcharlie opened this issue Jul 26, 2022 · 1 comment
Open

Export TypeScript Types #184

fishcharlie opened this issue Jul 26, 2022 · 1 comment

Comments

@fishcharlie
Copy link
Contributor

TypeScript types such as Rate, Label, and a LOT more aren't exported in this library. This means you can't reference them in your functions.

A use case for this is I was trying to build a function that takes in an array of Rates, and returns the best one depending on business criteria. But because the Rate type wasn't exported, I had to set my parameter type to any. Which is not a good solution at all.

Please export these types so users can reference them in other functions as parameters and return types.

@AnneOReilly
Copy link
Member

Hey @fishcharlie, thank you for your feedback. We're looking into including this work in our next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants