Identifying Kinds of Libraries First, we’ll review the kinds of libraries TypeScript declaration files can represent. We’ll briefly show how
Consuming Dependencies There are several kinds of dependencies you might have.
Modular Libraries Some libraries only work in a module loader environment. For example, because express only works in Node.js and
Symbol.hasInstance A method that determines if a constructor object recognizes an object as one of the constructor’s instances
Decorator Evaluation There is a well defined order to how decorators applied to various declarations inside of a class are applied:
Set up the build Right click on the project and click New Item. Then choose TypeScript Configuration File
React integration To use JSX with React you should use the
Browserify Now let’s move this project from Node to the browser. To do this, we’d like to bundle all our modules into one JavaScript file. Fortunately
Create a webpack configuration file Create a webpack.config.js file at the root of the project directory.
Re-exports Often modules extend other modules, and partially expose some of their features. A re-export does not import it locally, or introduce
Page 2 of 29