JetBrains Rider 2017.2 Help

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 compilation and the tools that perform it are called compilers.

Running a file with injected TypeScript from JetBrains Rider

Note that no run configuration is required for launching applications with injected TypeScript from JetBrains Rider.

  1. Compile the TypeScript code into Javascript.
  2. 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.
  3. Do one of the following:
    • Choose View | Open in Browser on the main menu or press N/A. Then select the desired browser from the pop-up menu.
    • Hover your mouse pointer over the code to show the browser icons bar: browserIcons Click the icon that indicates the desired browser.
Last modified: 17 November 2017