Number As in JavaScript, all numbers in TypeScript are floating point values. These floating point numbers get the type number
Browserify
Enums Enums are compatible with numbers, and numbers are compatible with enums. Enum values from different enum types are considered incompatible
Objects with Properties Documentation The global variable myLib has a function
Readonly properties Some properties should only be modifiable when an object is first created. You can specify this by putting readonly
Splitting Across Files As our application grows, we’ll want to split the code across multiple files to make it easier to maintain.
Install TypeScript If your version of Visual Studio does not already have TypeScript, you can install it for
// Type definitions for [~THE LIBRARY NAME~] [~OPTIONAL VERSION NUMBER~] // Project: [~THE PROJECT NAME~] // Definitions by: [~YOUR
Add NPM dependencies Add the following "dependencies" to package.json to install Angular 2 and SystemJS:
Never The never type represents the type of values that never occur. For instance, never is the return type for a
Page 9 of 29