Moving to TypeScript Files
  • References/JavaScript/TypeScript/Tutorials

Moving to TypeScript Files At this point, you’re probably ready to start using TypeScript files. The first step is to rename one of your

2025-01-10 15:47:30
Add Angular to the gulp build
  • References/JavaScript/TypeScript/Tutorials

Add Angular to the gulp build Finally, we need to make sure that the Angular files are copied as part of the build. We need to add:

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

Create a webpack configuration file Create a webpack.config.js file at the root of the project directory.

2025-01-10 15:47:30
<amd-dependency />
  • References/JavaScript/TypeScript/Triple-Slash Directives

/// <amd-dependency /> Note: this directive has been deprecated. Use import "moduleName";

2025-01-10 15:47:30
Publicize your declaration file
  • References/JavaScript/TypeScript/Declaration Files

Publicize your declaration file After publishing your declaration file with your package, make sure to add a reference to it in the

2025-01-10 15:47:30
Needless Namespacing
  • References/JavaScript/TypeScript/Namespaces & Modules

Needless Namespacing If you’re converting a program from namespaces to modules, it can be easy to end up with a file that looks like this:

2025-01-10 15:47:30
Setting up your Directories
  • References/JavaScript/TypeScript/Tutorials

Setting up your Directories If you’re writing in plain JavaScript, it’s likely that you’re running your JavaScript directly, where your

2025-01-10 15:47:30
Consuming Dependencies
  • References/JavaScript/TypeScript/Declaration Files

Consuming Dependencies There are several kinds of dependencies you might have.

2025-01-10 15:47:30
String Literal Types
  • References/JavaScript/TypeScript/Advanced Types

String Literal Types String literal types allow you to specify the exact value a string must have. In practice string literal types combine

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

Symbol.unscopables An Object whose own property names are property names that are excluded from the ‘with’ environment bindings

2025-01-10 15:47:30