I don't know if I should file bug report on typing here, but here is the case:
const a: Unit = unit("1 km")
const b: Unit = unit("1 m")
const ratio: Unit = divide(a, b)
This type checks, but ratio is actually number at runtime. This causes problem as I cannot write correct code without type assertion (i.e. as unknown as number).
I don't know if I should file bug report on typing here, but here is the case:
This type checks, but
ratiois actuallynumberat runtime. This causes problem as I cannot write correct code without type assertion (i.e.as unknown as number).