Use Union Types Don’t write overloads that differ by type in only one argument position:
Integrating with Build Tools You might have some more build steps in your pipeline. Perhaps you concatenate something to each of your files
Install our dependencies Now we can use npm install to install packages. First install TypeScript and gulp globally. (You might
Method Decorators A Method Decorator is declared just before a method declaration. The decorator is applied to the Property Descriptor
Import a single export from a module import { ZipCodeValidator } from "./ZipCodeValidator"; let
The Impact of ES6 on Module Plugins Some plugins add or modify top-level exports on existing modules. While this is legal in CommonJS and other
Scoping rules var declarations have some odd scoping rules for those used to other languages. Take the following example:
Abstract Classes Abstract classes are base classes from which other classes may be derived. They may not be instantiated directly. Unlike an
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
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
Page 7 of 29