Page Contents

Home > @loopback/metadata > NamespacedReflect > decorate

NamespacedReflect.decorate() method

Signature:

decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: Object, targetKey?: string | symbol, descriptor?: PropertyDescriptor): PropertyDescriptor | Function;

Parameters

Parameter Type Description
decorators (PropertyDecorator \| MethodDecorator)\[\]
target Object
targetKey string \| symbol _(Optional)_
descriptor PropertyDescriptor _(Optional)_

Returns:

PropertyDescriptor | Function