type InputValue: number;
function(value: InputValue) {
// do something here
}
There is not int
number in Typescript (only BigInt
)
How to enforce value has 0 decimal digit (i.e. it's not a float number) as a type without additional logic / type assertions?