Wizards of the Web
  • Home

Signature

fount of useless knowledge

TypeScript Decorators: Property Decorators
TypeScript

TypeScript Decorators: Property Decorators

This post takes an in-depth look at property decorators. It examines their signature, provides sample usage, and exposes a common antipattern. Reading the previous posts in the series is encouraged but not necessary. The Series so Far Code Overview Signature target: any propertyKey: string | symbol Usage Antipattern Example Solution Recap Legal The Series so Far Decorator Introduction JavaScript Foundation Reflection Parameter Decorators Property Decorators These posts are planned but not written yet:

  • CJ Harries
    CJ Harries
CJ Harries 11 March 2018 • 8 min read
TypeScript Decorators: Parameter Decorators
TypeScript

TypeScript Decorators: Parameter Decorators

This post takes an in-depth look at parameter decorators. It examines their signature and provides a couple of useful examples. Reading the previous posts in the series is encouraged but not necessary. The Series so Far Code Overview Class Method vs Global Function Signature target: any propertyKey: string | symbol parameterIndex: number Usage required Arbitrary Metadata Recap Legal The Series so Far Decorator Introduction JavaScript Foundation Reflection Parameter Decorators Property Decorators Method Decorators Class Decorators Eventual Topics:

  • CJ Harries
    CJ Harries
CJ Harries 10 March 2018 • 13 min read
Wizards of the Web © 2018
Latest Posts Hugo Casper3 by Jonathan Janssens