this and arrow functions In JavaScript, this is a variable that’s set when a function is called. This makes it a
Putting it all together Just run: webpack
The JSX result type By default the result of a JSX expression is typed as any. You can customize the type by specifying the JSX
Searching For the most part, type declaration packages should always have the same name as the package name on npm, but prefixed
Class Decorators A Class Decorator is declared just before a class declaration. The class decorator is applied to the constructor of
Excess Property Checks In our first example using interfaces, TypeScript let us pass { size: number; label: string; } to something
Iterables An object is deemed iterable if it has an implementation for the
Re-declarations and Shadowing With var declarations, we mentioned that it didn’t matter how many times you declared your variables;
Type parameters as constraints With TypeScript 1.8 it becomes possible for a type parameter constraint to reference type parameters from the
Create a page Create a file in src named index.html:
Page 10 of 29