Constructor to initialize a modifier.
The function to modify the decorator.
The list of types that can be modified.
Protected
_classProtected
_fromProtected
Optional
_indexProtected
_keyProtected
Optional
_methodGets or sets the class reference being decorated.
Gets or sets the originating class reference.
Gets the index of the parameter being decorated, if applicable.
Determines if the target is a class.
Gets the key of the property or method being decorated.
Gets the method descriptor if the target is a method.
Applies modifications to the specified decorator.
The decorator to modify.
The result of the modification function.
Applies the decoration to the specified target.
The class reference.
The property key.
Optional
method: Record<string, any>The method descriptor.
Optional
from: Record<string, any>The originating class reference.
Optional
index: numberThe parameter index.
The current instance.
Decorates an unknown type (class, method, or property).
The class reference.
Optional
key: stringThe property key.
Optional
method: PropertyDescriptorThe method descriptor.
Optional
index: numberThe parameter index.
The current instance.
Static
applyStatic
createCreates a new modifier instance.
The function to modify the decorator.
Rest
...modifyTypes: Constructor<ToModifyEx>[]The list of types that can be modified.
A new modifier instance.
Represents a modifier for decorators.