Can we call TypeScript a Framework?
Technically, TS is not a framework. It is a strongly typed programming language. There are frameworks that you can use with TypeScript, such as Angular 2. You can now use Angular 9 with the latest version of TypeScript. Angular originated from TS. NestJS
Here are the reasons why it is not a framework:
- TS is a superset of JS- whatever is written in TS starts and ends with JS, with a choice of adding additional components.
- TS supports class-based objects, inheritance, and modifiers, making it object-oriented.
- Since it is a multiparadigm programming language, it follows classes, encapsulation, inheritance, polymorphism and data abstraction.
- TS has syntax and semantics.
Does it have frameworks?
In short –Yes, TS has many frameworks.
Here is a list of the frameworks:
According to the official website, the definition is- “Angular is a platform and framework for building single-page client applications using HTML and TypeScript. Angular is written in TypeScript and implements core and optional functionality as a set of TypeScript libraries that you import into your applications.”
NestJS is a Node.js framework used with TypeScript to build smooth and scalable server-side applications. It depends on string HTTP frameworks, such as Fastify. NestJS also rectifies the faults of previous versions of Node.js, and it is believed to be better than ExpressJS.
LoopbackJS is a TS framework for building microservices and APIs. It has first-class support for TS. It is beneficial for both – frontend development and backend development.