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
Publish to @types Packages on under the
Return Types of Callbacks Don’t use the return type any for callbacks whose value will be ignored:
/// <amd-module /> By default AMD modules are generated anonymous. This can lead to problems when other tools are used to
Never The never type represents the type of values that never occur. For instance, never is the return type for a
/// <reference path="..." /> The /// <reference path="..." /> directive is the most common of this group
Early Benefits Even at this point you can get some great benefits from TypeScript understanding your project. If you open up an editor like
/// <reference no-default-lib="true"/> This directive marks a file as a default library. You will see this comment
Page 11 of 29