Decorating your code with TypeScript Decorators
Dhiraj Shrotri
@dhiraj-shrotri
A decorator is a special kind of declaration that can help in extending the functionality of your code. They are helpful for anything you want to transparently wrap with extra functionality. These include memoization, enforcing access control and authentication, logging etc. In this talk, I’ll talk about decorators in TypeScript and using them in your code.
Outline
The decorator design pattern in Oops.
Decorator Factories.
Getting started with Typescript
Decorators in Typescript
- Class decorators
- Method Decorators
- Accessor Decorators
- Property Decorators
Some other code examples
Requirements
A basic understanding of Typescript
Speaker bio
Hi! I am Dhiraj and I work as a Full Stack Developer at Cloudnaut Technologies. Lately I’ve been working on Typescript and NestJS.
{{ errorMsg }}