In this article, we are going to discuss TypeScript for both backend and frontend applications.
Using TypeScript On The Backend
Using TypeScript On The Frontend
Although TypeScript is more commonly used as a backend language, there is nothing stopping you from using it on the frontend. In fact, if you want to build a robust and scalable frontend, it is encouraged.
Prior to TypeScript, a lot of alternative approaches to type checking existed on the frontend, such as PropTypes in React. However, I personally found this approach to be unintuitive and annoying. Unlike TypeScript!
Summary: Is TypeScript Frontend or Backend
As always, happy coding!