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
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
Using Class Types in Generics
  • References/JavaScript/TypeScript/Generics

Using Class Types in Generics When creating factories in TypeScript using generics, it is necessary to refer to class types by their constructor

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
Destructuring
  • References/JavaScript/TypeScript/Variable Declarations

Destructuring Another ECMAScript 2015 feature that TypeScript has is destructuring. For a complete reference, see

2025-01-10 15:47:30
this and arrow functions
  • References/JavaScript/TypeScript/Functions

this and arrow functions In JavaScript, this is a variable that’s set when a function is called. This makes it a

2025-01-10 15:47:30
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
Add TypeScript
  • References/JavaScript/TypeScript/Tutorials

Add TypeScript The next step is to add a folder for TypeScript.

2025-01-10 15:47:30
Return Types of Callbacks
  • References/JavaScript/TypeScript/Declaration Files

Return Types of Callbacks Don’t use the return type any for callbacks whose value will be ignored:

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