Running TypeScript
On this page:
Introduction
TypeScript code is not processed by browsers that work with JavaScript code. Therefore to be executed, TypeScript code has to be translated into JavaScript. This operation is referred to as transpilation and the tools that perform it are called transpilers.
Running a file with injected TypeScript from PhpStorm
Note that no run configuration is required for launching applications with injected TypeScript from PhpStorm.
- Transpile the TypeScript code into Javascript.
- In the editor, open the HTML file with the TypeScript reference. This HTML file does not necessarily have to be the one that implements the starting page of the application.
- Manually replace the reference to the TypeScript file with the reference to the JavaScript file that was generated through the transpilation.
- Do one of the following:
See Also
Reference:
Last modified: 23 March 2017