Overview
TypeScript brings static types to JavaScript, allowing developers to build robust and reliable codebases.
benefits
The benefits of static types are not TypeScript-specific:
- Enable static code analysis, which operates on code as-is (without the need to run the code)
- Make the codebase more robust and reliable
TypeScript tooling ecosystem
- The language service tool runs in the background at dev-time, and monitors open files continuously (part of the Language Server Protocol).
- The type checker is invoked on-demand to type-check the entire project (tsc)
- The compiler (also called transpiler) transpiles TS files to JS. (Transpiling doesn't require type-checking so it can be done by separate tools).