Once we’ve created our first TypeScript file, we need to convert it to JavaScript if we want our browsers (or Node.JS) to run it.
There are several online sandbox tools to let you write code, but they won’t convert it to JavaScript, at least none that I’ve found yet.
To set it up, you will need to execute tsc
, a command which actually transpiles your TypeScript into JavaScript.
However, instead of having to work within the command-line tools, you can also configure Visual Studio Code. The extension(s) you might use is different from your TypeScript compiler. So you have to configure VSC correctly. Here is a link for how to do that: https://code.visualstudio.com/docs/typescript/typescript-compiling
Compiling our TypeScript was originally found on Access 2 Learn