Dependencies All dependencies are managed by npm. Make sure all the declaration packages you depend on are marked appropriately in the
Optional Properties Not all properties of an interface may be required. Some exist under certain conditions or may not be there at all. These
Rest Parameters Required, optional, and default parameters all have one thing in common: they talk about one parameter at a time. Sometimes
The as operator Recall how to write a type assertion: var
Test the resulting app gulp node dist/main.js The program
/// <reference path="..." /> The /// <reference path="..." /> directive is the most common of this group
Accessors TypeScript supports getters/setters as a way of intercepting accesses to a member of an object. This gives you a way of having finer-grained
Tracing module resolution As discussed earlier, the compiler can visit files outside the current folder when resolving a module. This can be
Protected The new protected modifier in classes works like it does in familiar languages like C++, C#, and Java. A protected
Add TypeScript code Right click on scripts and click New Item. Then choose TypeScript File (it
Page 15 of 29