JSFoo Pune 2020

JSFoo Pune 2020

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

Tickets

Loading…

Dhiraj Shrotri

@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.

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

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

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

{{ errorMsg }}

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

Hybrid access (members only)

Hosted by

JSFoo is a forum for discussing UI engineering; fullstack development; web applications engineering, performance, security and design; accessibility; and latest developments in #JavaScript. Follow JSFoo on Twitter more