Typescript meta programming from 0 to 100
summary
A demo shows concrete claims and working code: TypeScript compiler metadata plus reflect-metadata and simple decorators let an injectable decorator record constructor dependencies so a small recursive injector resolves instances at runtime; a 4.5 kilobyte bundle example emphasizes low overhead. The build includes a provider override (a stub replacement) and an Express-style controller router generated from method decorators; the live coding compiles and runs, proving the techniques work.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 2:39Speaker background
- 4:05Meta programming basics
- 6:36Meta programming manual
- 7:17Dependency injection with decorators
- 13:40Advanced DI with providers
- 15:50API controllers with decorators
- 20:34Reflection and metadata summary
related talks
48mFalling in love with decorators ES6/TypeScript
26mBuilding StencilJS with TypeScript
33mHidden Gems of TypeScript compiler
32mDemystifying TypeScript Decorators
46mTypeScript Decorators - Higher Order Functions in Disguise
34mNot Your Uncle’s Clean Code (TypeScript Edition)
51mTypeScript - Beyond the Basics
16mDiscover the power of decorators in TypeScript
