Backend with Node.js
🟦 Node with TypeScript
Add static typing to the backend: type an Express API with interfaces and generics, utility types, and the boundary between compile-time validation and runtime data validation.
What you'll learn
- Type Express handlers with
Request<Params, ResBody, ReqBody>and DTOs - Derive types with utility types (
Partial,Pick,Omit) - Narrow types at runtime with type guards (
x is T) - Validate external data at runtime (e.g. with Zod) beyond compile-time type erasure
Lessons
Why TypeScript on the backendStatic typing, compile-time errors, and tooling. Typing an Express APIRequest/Response, DTOs with interfaces and generics. Useful types and the runtime boundaryUnions, utility types, type guards and validation with Zod.Practice this module in the app
DevPath is a hands-on course: you read the theory here; in the app you put it into practice with exercises that really run, offline.
Start free in the app →