TypeScript Setup for Node.js with VS Code & PM2

Veröffentlicht am: 11 November 2019
auf dem Kanal: Zaiste Programming
41,450
408

TypeScript is a superset of JavaScript that provides optional static typing along with type inference. It also supports modern JavaScript features, which makes it similar to the Babel project.

This type annotation describes a range of values that a particular variable (or constant) can take, or a particular function can return. With TypeScript we can now explicitly specify the value constrains in our code. It leads to a stricter control, which is a good thing.

TypeScript not only allows us to specify type, but is also smart enough to guess the types based on how particular variable or function is used in the code - this feature is known as type inference.

Let's now write a simple HTTP server in Node.js using TypeScript to see how VS Code supports TypeScript out of the box.

TypeScript makes writing JavaScript more enjoyable. It reduces the probability of making typos while the type system constrains the area for mistakes.

We also simplified and sped up the development process by eliminating the need to switch between the editor and the terminal - everything is now in one place, directly accessible from VS Code.

That's a perfect TypeScript setup for Node.js with VS Code, indeed!


Auf dieser Seite können Sie das Online-Video TypeScript Setup for Node.js with VS Code & PM2 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Zaiste Programming 11 November 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 41,450 Mal angesehen und es wurde von 408 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!