You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
{
//...
};
}
The text was updated successfully, but these errors were encountered:
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
parameterizable decorator
Note: it is not a factory
decorator factory
is not a decorator, will produce instances of decorators
The text was updated successfully, but these errors were encountered: