Explain applyDecorators() for a function prototype
Opened this issue · 0 comments
jslz commented
hi, any chance somebody has example code for how to use applyDecorators() on a non-class-method stand-alone kind of function? I don't know what key to use for the property.
The docs only say:
// This works on regular function prototypes
// too, like `function Foo() {}`
applyDecorators(Foo, {
getFoo: [autobind]
});