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.
Hi Jimmy, I prefer Typescript... it's better than to search for types errors in vanilla JavaScript. I have just a few points to your consequences...
Developers will need to learn TypeScript if they are not already familiar with it. - This is true, but it will not be so hard… JavaScript is still the base-stone and everyone's who use it, is quite excited of type safety.
Developers will need to set up a TypeScript build pipeline for their projects. - This is just several lines of code, it just takes some time, so don't be afraid of this.
Developers will need to use TypeScript-specific tools and libraries. - I use VSC and add just a few Typescript specific add-ons, that's all.
Developers will need to write type definitions for any third-party libraries that they use. - This is the second side of the coin, if you don't know what the type is, typescript cannot check it for you… There is some complexity in non-basic types, but community is now huge and Microsoft do good job with knowledge base, so it will be ok.
Velo Credit Loan APp Customer Care Helpline Number ✔️ 7439367021//7439822246 All information Toll Free..
Velo Credit Loan APp Customer Care Helpline Number ✔️ 7439367021//7439822246 All information Toll Free..