Phase 4 · JavaScript & TypeScript for Backend
TopicsDecorators (Basics)
Part of the Backend Developer Roadmap.
Summary
An experimental TypeScript feature that lets you annotate classes and methods with metadata (`@Controller`, `@Get`) — the syntax that frameworks like NestJS build their entire API around.
How to Learn This
- 1Read a few `@Decorator` examples from a NestJS controller and guess what each does.
- 2Understand decorators are mostly a framework-level feature — you'll consume them more than write your own early on.
- 3Enable the `experimentalDecorators` tsconfig option to try one yourself.
More topics in JavaScript & TypeScript for Backend
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — free on the InsideEdge app.