Methods
# apply(decorators) → {function}
Creates a composite decorator that applies multiple decorators in sequence
Decorator factory that applies multiple decorators to a single target
Parameters:
Name | Type | Description |
---|---|---|
decorators |
Array.<(ClassDecorator|MethodDecorator|PropertyDecorator)>
|
Array of decorators to apply |
A decorator function that applies all provided decorators to the target
function
# metadata(key, value) → {function}
Creates a decorator that attaches metadata to the target using Reflect.defineMetadata
Decorator that assigns metadata to a class, method, or property
Parameters:
Name | Type | Description |
---|---|---|
key |
string
|
The key under which the metadata is stored |
value |
V
|
The metadata value to be associated with the key |
A decorator function that can be applied to classes, methods, or properties
function