Watch and re-transpile any TypeScript file with:
tsc file.ts --watch
Today I’m doing course that uses TypeScript, but I don’t any of the tooling that tells me if I’m writing compilable TypeScript. I’ve got a workaround: watching the file with my compiler.
tsc tutorial/src/index.ts --watch
This returns:
Starting compilation in watch mode.
Now, when I write my tutorial file, the compiler transpiles, giving near-instant feedback that my file is compilable (or not).
See tsc --help for more info.