dividab / uom

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

Remove T extends Quantity and built-in Quantity union type. #45

Closed jonaskello closed 4 years ago

jonaskello commented 4 years ago

In order to be able to extend this package with new units we need to move away from having a statically defined Quantity union type that constrains Amount. See #19 for more reasoning behind this.

jonaskello commented 4 years ago

I will make a v3 branch to work on this and other changes to enable having units defined in external packages and making this package a core package that will not need changing for adding new units.

jonaskello commented 4 years ago

Closed in #47.