Skip to content
thesarfo

Note

TypeScript Compiler Basics

Initializing a TypeScript project and running the compiler in watch mode.

views 0

Before you can actually run typescript, your root folder needs to be initialized in typescript, just like it is done in nodejs. You can use the below command

Terminal window
tsc --init

To run javascript in watch mode, use the command

Terminal window
tsc filename.ts --watch