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
I need a list of best possible units for a specific MeasureKind. The function getMeasureKind is exported, but no function for getting a list of best possible units.
Is there a nice way to achieve this? And if no, maybe it would be a nice feature?
The text was updated successfully, but these errors were encountered:
Like you said, the best units aren't currently exported, and I'm open to adding in that functionality, but it should be possible for you to copy over the values convert uses.
Each of the conversion definitions includes a best array/object which you are free to copy over:
This lets you have total control over which units are included in your app & ensures that if I ever update them on my end, the values in your app are separated (which might be a negative depending on your use case). Does this seem like a reasonable compromise, or should I try and add in a way to programmatically retrieve them?
I think it would be a really useful addition. Imagine the scenario where a user of a dashboard wants to display possible conversions for a unit as a measure of convenience (imperial to metric or the other way around).
But for now I will likely stick to your suggestion to extract the types. These units will not change anytime soon 😄.
I need a list of best possible units for a specific MeasureKind. The function getMeasureKind is exported, but no function for getting a list of best possible units.
Is there a nice way to achieve this? And if no, maybe it would be a nice feature?
The text was updated successfully, but these errors were encountered: