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