Dependencies on Modules
  • References/JavaScript/TypeScript/Declaration Files

Dependencies on Modules If your library depends on a module, use an import statement:

2025-01-10 15:47:30
Excess Property Checks
  • References/JavaScript/TypeScript/Interfaces

Excess Property Checks In our first example using interfaces, TypeScript let us pass { size: number; label: string; } to something

2025-01-10 15:47:30
Readonly properties
  • References/JavaScript/TypeScript/Interfaces

Readonly properties Some properties should only be modifiable when an object is first created. You can specify this by putting readonly

2025-01-10 15:47:30
module.d.ts
  • References/JavaScript/TypeScript/Declaration Files

// Type definitions for [~THE LIBRARY NAME~] [~OPTIONAL VERSION NUMBER~] // Project: [~THE PROJECT NAME~] // Definitions by: [~YOUR

2025-01-10 15:47:30
Static Properties
  • References/JavaScript/TypeScript/Classes

Static Properties Up to this point, we’ve only talked about the instance members of the class, those that show up on the object when

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
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
Parameter Decorators
  • References/JavaScript/TypeScript/Decorators

Parameter Decorators A Parameter Decorator is declared just before a parameter declaration. The parameter decorator is applied to the

2025-01-10 15:47:30
Download packages from NPM
  • References/JavaScript/TypeScript/Tutorials

Download packages from NPM Install PackageInstaller

2025-01-10 15:47:30
Polymorphic this types
  • References/JavaScript/TypeScript/Advanced Types

Polymorphic this types A polymorphic this type represents a type that is the subtype of the containing class

2025-01-10 15:47:30