dividab / uom

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

AlternateUnit, BaseUnit and ProductUnit don't use their type parameter. #6

Closed geon closed 6 years ago

geon commented 6 years ago

Apparently this is a big no-no.

https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html

https://github.com/Microsoft/TypeScript/wiki/FAQ#why-is-astring-assignable-to-anumber-for-interface-at--

Jontem commented 6 years ago

I believe this is fixed now.