Optionaldescription: stringProtected Optional_Protected Optional_Protected_Protected_Protected_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: string
Property/method name (undefined for class decorators)
OptionalmethodDescriptor: PropertyDescriptor
Method descriptor (undefined for parameter decorators)
OptionalparameterIndex: number
Parameter 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: number
The parameter position
This instance for method chaining
StaticcreateOptionaldescription: string
The class constructor where this decorator was applied.