JSFoo Pune 2020

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

Decorating your code with TypeScript Decorators

Submitted by Dhiraj Shrotri (@dhiraj-shrotri) on Feb 10, 2020

Duration of the session: 15 mins crisp talk Status: Awaiting details

Abstract

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.

Comments

Login to leave a comment

You need to be a participant to comment.

{{ formTitle }}
Post a comment...
New comment

{{ errorMsg }}