Hacker News new | ask | show | jobs
by Tajnymag 1362 days ago
Typescript by itself is just the language. You could try a different typescript compiler like esbuild for example.
1 comments

> However, esbuild does not do any type checking so you will still need to run tsc -noEmit in parallel with esbuild to check types.
Personally, I find that I don't really need full type checking on every build. For most small changes, the errors shown in vscode are sufficient while editing, and then full type checking can be run occasionally when needed (and in CI of course).
Your IDE can be doing type checks on whatever file(s) you're working on, you can use esbuild or swc to compile to javascript to make sure it runs correctly, and you can periodically use tsc to fully compile and typecheck your entire codebase to catch anything that you somehow missed in the IDE.
You're right, I didn't count with that