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