Dependencies on Modules If your library depends on a module, use an import statement:
Excess Property Checks In our first example using interfaces, TypeScript let us pass { size: number; label: string; } to something
Readonly properties Some properties should only be modifiable when an object is first created. You can specify this by putting readonly
// Type definitions for [~THE LIBRARY NAME~] [~OPTIONAL VERSION NUMBER~] // Project: [~THE PROJECT NAME~] // Definitions by: [~YOUR
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
Destructuring Another ECMAScript 2015 feature that TypeScript has is destructuring. For a complete reference, see
Gulp If you’re using Gulp in some fashion, we have a tutorial on using Gulp
Parameter Decorators A Parameter Decorator is declared just before a parameter declaration. The parameter decorator is applied to the
Download packages from NPM Install PackageInstaller
Polymorphic this types A polymorphic this type represents a type that is the subtype of the containing class
Page 11 of 29