For compiling a Typescript file, follow these steps carefully:

  • Install the Typescript compiler, tsc.
  • Add a tsconfig.json file
  • Transpile Typescript into Javascript
  • Compile with the --sourcemap or set the sourceMap property in the tsconfig.json file as true for map support.
BY Best Interview Question ON 28 Apr 2020

Suggest An Answer