You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 toany
. 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.
The text was updated successfully, but these errors were encountered: