Protected Optional_Protected Optional_Protected_Protected_Protected_The class constructor where this decorator was applied.
The original class where the decoration was first applied.
May differ from classRef in inheritance scenarios.
The zero-based index of the parameter being decorated (parameter decorators only).
Determines if this decorator was applied to a class constructor.
The name of the property or method being decorated.
The actual method function reference (for method decorators).
Automatically detects the decoration target type and applies appropriate metadata.
This method handles the complexity of TypeScript's decorator signatures and normalizes them into a consistent internal representation.
The class constructor
OptionalpropertyKey: stringProperty/method name (undefined for class decorators)
OptionalmethodDescriptor: PropertyDescriptorMethod descriptor (undefined for parameter decorators)
OptionalparameterIndex: numberParameter index (undefined for class/method decorators)
This instance for method chaining
Manually sets all metadata properties for this decorator.
The class being decorated
The property/method name
OptionalmethodRef: Record<string, any>The method function reference
OptionalsourceClass: Record<string, any>The originating class (defaults to targetClass)
OptionalparameterIndex: numberThe parameter position
This instance for method chaining
Base decorator class that tracks metadata about where decorators are applied.
This class serves as the foundation for all decorator implementations in the framework, providing a consistent way to track and link decorators across classes, methods, and parameters.