April 2018
Beginner
536 pages
13h 21m
English
The official decorators proposal defines a decorator factory as follows:
We have learned to implement class, property, method, and parameter decorators. However, in most cases, we will consume decorators, not implement them. For example, in InversifyJS, we use the @injectable decorator to declare that a class will be injected into other classes, but we don't need to implement the @injectable decorator. We can use the decorator factory to make decorators easier to consume. Let's ...