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
Optional
propertyKey: stringProperty/method name (undefined for class decorators)
Optional
methodDescriptor: PropertyDescriptorMethod descriptor (undefined for parameter decorators)
Optional
parameterIndex: 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
Optional
methodRef: Record<string, any>The method function reference
Optional
sourceClass: Record<string, any>The originating class (defaults to targetClass)
Optional
parameterIndex: 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.