TypeScript
Microsoft's typed superset of JavaScript
What it is
TypeScript lets you annotate JavaScript with the shape of your data: this argument is a string, that object has these fields. The compiler strips all of it out and leaves plain JavaScript for browsers and Node.js to run as usual.
Key features
- Editor help: See available properties as you type and rename symbols across files
- Type inference: Most variables need no annotation because the first value tells enough
- Interfaces and unions: Describe an API response or limit a value to a few choices
- Adjustable strictness: Turn checks on gradually in tsconfig for an older project
Who it's for
The benefit shows on sites with several maintainers, libraries used by others and code that is refactored often. A short throwaway script may not need it. Types are checked only during development, so data arriving from outside still has to be validated at run time. It is free to use.
Front-end & Site Building
- Sass — A CSS preprocessor with variables, nesting and mixins
- SolidJS — A signals-based UI framework with React-like JSX
- Svelte — A UI framework that compiles components at build time
- Highcharts — Business-grade JavaScript charts, licensed for commercial use
- ToolJet — An open-source low-code builder for internal tools
- Less — A CSS preprocessor that adds variables, nesting and mixins