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
tsc --initTo run javascript in watch mode, use the command
tsc filename.ts --watchNote
Initializing a TypeScript project and running the compiler in watch mode.
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
tsc --initTo run javascript in watch mode, use the command
tsc filename.ts --watch