Closed
Description
The type for Math.sign
is currently (x: number): number
as seen in
https://github.com/Microsoft/TypeScript/blob/master/lib/lib.es6.d.ts#L4177
Its type could be (x: number): -1 | 0 | 1
instead.
That would allow for more specific typing in app code without having to wrap Math.sign
.