Private and protected members in classes Private and protected members in a class affect their compatibility. When an instance of a class is
Re-export to extend Often you will need to extend functionality on a module. A common JS pattern is to augment the original object with extensions
Early Benefits Even at this point you can get some great benefits from TypeScript understanding your project. If you open up an editor like
Best common type When a type inference is made from several expressions, the types of those expressions are used to calculate a “best common
The as operator Recall how to write a type assertion: var
Union Types Union types are closely related to intersection types, but they are used very differently. Occasionally, you’ll run into a library
Webpack Webpack integration is pretty simple. You can use ts-loader, a TypeScript loader, combined with source-map-loader
TypeScriptCompileBlocked If you are using a different build tool to build your project (e.g. gulp, grunt , etc.) and VS for the development
Overloaded Functions Documentation The getWidget function accepts a number and returns
Global Variables Documentation The global variable foo contains the number
Page 14 of 29