-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Description
This is about distinguishing parameterizable decorators from standard decorators from factory functions/methods that will return either of the two, since there has been quite a misunderstanding about standard decorators vs. parameterizable decorators and along that line also about decorator factories.
decorator
function decorator(...args)
{
// decorate
}
parameterizable decorator
Note: it is not a factory
function decorator(parameters)
{
return function decoratorImpl(...args)
{
// decorate
};
}
decorator factory
is not a decorator, will produce instances of decorators
function factory(factoryOptions)
{
// e.g.
return function parameterizableDecorator(parameters)
{
//...
};
}
Metadata
Metadata
Assignees
Labels
No labels