Merging Namespaces
  • References/JavaScript/TypeScript/Declaration Merging

Merging Namespaces Similarly to interfaces, namespaces of the same name will also merge their members. Since namespaces create both a namespace

2025-01-10 15:47:30
Add a TypeScript configuration file
  • References/JavaScript/TypeScript/Tutorials

Add a TypeScript configuration file You’ll want to bring your TypeScript files together - both the code you’ll be writing as well as any necessary

2025-01-10 15:47:30
Import a module for side-effects only
  • References/JavaScript/TypeScript/Modules

Import a module for side-effects only Though not recommended practice, some modules set up some global state that can be used by other modules

2025-01-10 15:47:30
replace
  • References/JavaScript/TypeScript/Symbols

Symbol.replace A regular expression method that replaces matched substrings of a string. Called by the String.prototype

2025-01-10 15:47:30
TypeScript 1.1
  • References/JavaScript/TypeScript/What's New

Performance Improvements The 1.1 compiler is typically around 4x faster than any previous release. See

2025-01-10 15:47:30
Global Plugin
  • References/JavaScript/TypeScript/Declaration Files

Global Plugin A global plugin is global code that changes the shape of some global. As with global-modifying modules

2025-01-10 15:47:30
Constructor functions
  • References/JavaScript/TypeScript/Classes

Constructor functions When you declare a class in TypeScript, you are actually creating multiple declarations at the same time. The first is

2025-01-10 15:47:30
Parameter properties
  • References/JavaScript/TypeScript/Classes

Parameter properties In our last example, we had to declare a readonly member name and a constructor parameter theName

2025-01-10 15:47:30
gulp
  • References/JavaScript/TypeScript/Project Configuration

gulp

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

Watchify We’ll start with Watchify to provide background compilation: npm

2025-01-10 15:47:30