Typescript decorators parameters

  javascript, typescript

I would like to understand what are the different parameters of a Typescript decorator.

function myDecorator(target) {
  // do something with 'target' ...
}

In the example above, I know that target represents the function/class the decorator is attached to, but what are the other parameters of a decorator, their meaning an order, I also would like to get a link to an official documentation specifying this.

Thanks in advance.

Source: Ask Javascript Questions

LEAVE A COMMENT