TypeScript for Node.js Developers

TypeScript for Node.js Developers

1h 21mIntermediate2025-01-31

Authors

Emmanuel Henri

Emmanuel Henri

Executive with 20+ years of experience in programming and design

Course details

TypeScript's popularity is soaring due to its ability to enhance JavaScript with static types, leading to fewer runtime errors and better code quality. Given the recent updates to TypeScript, including the introduction of decorators, Disposable, AsyncDisposable, and SuppressedError, now is the perfect time to provide developers with the knowledge to leverage these features. In this course, instructor Emmanuel Henri provides a comprehensive overview of advanced TypeScript features and how to apply them in real-world Node.js projects.

Learning objectives
Set up and configure a Node.js project with TypeScript.
Apply decorators to optimize and modularize code.
Manage resources efficiently using Disposable and AsyncDisposable.
Handle complex error scenarios with SuppressedError.

Skills covered

TypeScriptNode.jsJavaScript FrameworksBack-End Web DevelopmentWeb DevelopmentProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off

Concepts

Introduction

  • TypeScript with Node.js
  • What you should know

TypeScript Setup

  • Template a Node.js and Express project
  • TypeScript setup
  • TypeScript file conventions
  • Compiling and automation, part 1
  • Compiling and automation, part 2

Using Types in Node.js

  • Adding basic types
  • Adding types in your functions
  • Use typescript classes in Node.js
  • How to use enums and union enums in Node.js

Node Organization with TypeScript

  • How to use an interface in Node.js
  • Generics in a Node.js project
  • Organizing with modules

TypeScript Tools for Node

  • Introduction to declaration merging
  • Introduction to iterators
  • Use decorators into Node.js
  • Introduction to Disposable and AsyncDisposable
  • Introduction to SuppressedError

Further Exploration

  • Playground exploration
  • TypeScript docs and advanced types

Conclusion

  • Next steps
40,000 Toman