I\'m experimenting with TypeScript, and in the process of creating a class with an ID field that should be an integer, I have gotten a
I think there is not a direct way to specify whether a number is integer or floating point. In the TypeScript specification section 3.2.1 we can see:
"...The Number primitive type corresponds to the similarly named JavaScript primitive type and represents double-precision 64-bit format IEEE 754 floating point values..."
I think int is a bug in Visual Studio intelliSense. The correct is number.