MSBuild Update project file to include locally installed Microsoft.TypeScript.Default.props (at the top) and Microsoft.TypeScript
Inferring the types In playing with the example, you may notice that the TypeScript compiler can figure out the type if you have types on one
Module Plugin or UMD Plugin A module plugin changes the shape of another module (either UMD or module). For example
this parameters Unfortunately, the type of this.suits[pickedSuit] is still any. That’s because this
Debug In Edge, press F12 and click the Debugger tab. Look in the first localhost folder, then src/app.ts
Constructor functions When you declare a class in TypeScript, you are actually creating multiple declarations at the same time. The first is
Type Aliases Type aliases create a new name for a type. Type aliases are sometimes similar to interfaces, but can name primitives, unions, tuples
Parameter properties In our last example, we had to declare a readonly member name and a constructor parameter theName
Merging Namespaces Similarly to interfaces, namespaces of the same name will also merge their members. Since namespaces create both a namespace
UMD A UMD module is one that can either be used as module (through an import), or as a global (when run in an environment
Page 27 of 29