dividab / uom

Extensible unit of measure conversion with type safety for typescript
MIT License
18 stars 1 forks source link

Stricter Amount type. #7

Closed geon closed 6 years ago

geon commented 6 years ago

This fixes issue https://github.com/dividab/uom/issues/4

I basically had to wrap the old Unit in a new interface, and the old Quantity union of string is now replaced with and union of Unit<QuantityName>.