Moving to TypeScript Files At this point, you’re probably ready to start using TypeScript files. The first step is to rename one of your
Add Angular to the gulp build Finally, we need to make sure that the Angular files are copied as part of the build. We need to add:
Create a webpack configuration file Create a webpack.config.js file at the root of the project directory.
/// <amd-dependency /> Note: this directive has been deprecated. Use import "moduleName";
Publicize your declaration file After publishing your declaration file with your package, make sure to add a reference to it in the
Needless Namespacing If you’re converting a program from namespaces to modules, it can be easy to end up with a file that looks like this:
Setting up your Directories If you’re writing in plain JavaScript, it’s likely that you’re running your JavaScript directly, where your
Consuming Dependencies There are several kinds of dependencies you might have.
String Literal Types String literal types allow you to specify the exact value a string must have. In practice string literal types combine
Symbol.unscopables An Object whose own property names are property names that are excluded from the ‘with’ environment bindings
Page 1 of 29