Jimmy Briggs
Mar 9, 2024
TypeScript
See the architecture decision record for more details.
ContextWhen deciding on TypeScript vs. JavaScript, we need to consider the following:
- TypeScript is a superset of JavaScript, which means that any valid JavaScript code is also valid TypeScript code.
- TypeScript is statically typed, which means that it can catch errors at compile time.
- TypeScript is a popular choice for large codebases because it helps with code organization and maintainability.
- TypeScript is supported by most modern IDEs, which means that you get better autocompletion and type checking.
- TypeScript can be transpiled to JavaScript, which means that you can use it in any environment that supports JavaScript.
We have decided to use TypeScript as our primary front-end language over JavaScript and strongly advise that TypeScript be used for all new projects going forward.
TypeScript offers several advantages over JavaScript, including static typing, better code organization, and better tooling support.
Consequences- Developers will need to learn TypeScript if they are not already familiar with it.
- Developers will need to set up a TypeScript build pipeline for their projects.
- Developers will need to use TypeScript-specific tools and libraries.
- Developers will need to write type definitions for any third-party libraries that they use.
7.57k views7.57k
Comments






















































































































