-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Domain: DecoratorsThe issue relates to the decorator syntaxThe issue relates to the decorator syntaxRevisitAn issue worth coming back toAn issue worth coming back to
Description
TypeScript Version: 2.3.2
Code
//Here is my code:
.
.
.
constructor(
@InputType({
name : 'Id',
type : 'text',
readOnly : true,
disabled : true,
width : '300px',
order : 1,
tableColumn : 0,
sortable : true
})
public id? : number) {
}
.
.
.
//Here is my decorator
.
.
.
export function InputType(parameters : any) {
function actualDecorator(target: any, property: string | symbol, parameterIndex?: number): void {
console.log(property);
.
.
.I was hoping to get the property name, but the property is undefined.
Metadata
Metadata
Assignees
Labels
Domain: DecoratorsThe issue relates to the decorator syntaxThe issue relates to the decorator syntaxRevisitAn issue worth coming back toAn issue worth coming back to