Page Contents
Home > @loopback/metadata > DecoratorFactory > decorate
DecoratorFactory.decorate() method
Base implementation of the decorator function
Signature:
protected decorate(target: Object, member?: string | symbol, descriptorOrIndex?: TypedPropertyDescriptor<any> | number): void;
Parameters
Parameter | Type | Description |
---|---|---|
target | Object | Decorator target |
member | string | symbol | (Optional) Optional property or method |
descriptorOrIndex | TypedPropertyDescriptor<any> | number | (Optional) Optional method descriptor or parameter index |
Returns:
void