Add NPM dependencies Add the following "dependencies" to package.json to install Angular 2 and SystemJS:
Gulp If you’re using Gulp in some fashion, we have a tutorial on using Gulp
Indexable Types Similarly to how we can use interfaces to describe function types, we can also describe types that we can “index into” like
Generic Constraints If you remember from an earlier example, you may sometimes want to write a generic function that works on a set of types
Iterables An object is deemed iterable if it has an implementation for the
Namespaced Validators namespace Validation { export interface StringValidator { isAcceptable(s:
export = and import = require() Both CommonJS and AMD generally have the concept of an exports object
Merging Interfaces The simplest, and perhaps most common, type of declaration merging is interface merging. At the most basic level, the merge
The JSX result type By default the result of a JSX expression is typed as any. You can customize the type by specifying the JSX
Splitting Across Files As our application grows, we’ll want to split the code across multiple files to make it easier to maintain.
Page 7 of 29