Describe the bug
In index.d.ts, the unit function is annotated as unit(value: MathNumericType, unit?: string): Unit. However, according to the documentation, the valid calls are
math.unit(value: number, valuelessUnit: string) : Unit
math.unit(value: number, valuelessUnit: Unit) : Unit
math.unit(unit: string) : Unit
math.unit(unit: Unit) : Unit
I believe the unit function should be typed as unit(value: MathNumericType, unit?: string | Unit): Unit
Describe the bug
In index.d.ts, the unit function is annotated as
unit(value: MathNumericType, unit?: string): Unit. However, according to the documentation, the valid calls areI believe the unit function should be typed as
unit(value: MathNumericType, unit?: string | Unit): Unit