Add NPM dependencies
  • References/JavaScript/TypeScript/Tutorials

Add NPM dependencies Add the following "dependencies" to package.json to install Angular 2 and SystemJS:

2025-01-10 15:47:30
Gulp
  • References/JavaScript/TypeScript/Tutorials

Gulp If you’re using Gulp in some fashion, we have a tutorial on using Gulp

2025-01-10 15:47:30
Indexable Types
  • References/JavaScript/TypeScript/Interfaces

Indexable Types Similarly to how we can use interfaces to describe function types, we can also describe types that we can “index into” like

2025-01-10 15:47:30
Constraints
  • References/JavaScript/TypeScript/Generics

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

2025-01-10 15:47:30
Iterables
  • References/JavaScript/TypeScript/Iterators & Generators

Iterables An object is deemed iterable if it has an implementation for the

2025-01-10 15:47:30
Namespaced Validators
  • References/JavaScript/TypeScript/Namespaces

Namespaced Validators namespace Validation { export interface StringValidator { isAcceptable(s:

2025-01-10 15:47:30
export = and import = require()
  • References/JavaScript/TypeScript/Modules

export = and import = require() Both CommonJS and AMD generally have the concept of an exports object

2025-01-10 15:47:30
Merging Interfaces
  • References/JavaScript/TypeScript/Declaration Merging

Merging Interfaces The simplest, and perhaps most common, type of declaration merging is interface merging. At the most basic level, the merge

2025-01-10 15:47:30
The JSX result type
  • References/JavaScript/TypeScript/JSX

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

2025-01-10 15:47:30
Splitting Across Files
  • References/JavaScript/TypeScript/Namespaces

Splitting Across Files As our application grows, we’ll want to split the code across multiple files to make it easier to maintain.

2025-01-10 15:47:30