Number As in JavaScript, all numbers in TypeScript are floating point values. These floating point numbers get the type number
Install our dependencies Now we can use npm install to install packages. First install TypeScript and gulp globally. (You might
/// <amd-module /> By default AMD modules are generated anonymous. This can lead to problems when other tools are used to
Classes Documentation You can create a greeter by instantiating the Greeter
Putting it all together Just run: webpack
Re-declarations and Shadowing With var declarations, we mentioned that it didn’t matter how many times you declared your variables;
Install TypeScript If your version of Visual Studio does not already have TypeScript, you can install it for
Abstract Classes Abstract classes are base classes from which other classes may be derived. They may not be instantiated directly. Unlike an
Readonly properties Some properties should only be modifiable when an object is first created. You can specify this by putting readonly
Use Union Types Don’t write overloads that differ by type in only one argument position:
Page 7 of 29