JSFoo Pune 2020

JSFoo Pune 2020

On component architecture, performance, security for front-end, and emerging trends

Dhiraj Shrotri


Decorating your code with TypeScript Decorators

Submitted Feb 10, 2020

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.


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


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.


{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}