You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Here is my code:...constructor(
@InputType({name : 'Id',type : 'text',readOnly : true,disabled : true,width : '300px',order : 1,tableColumn : 0,sortable : true})publicid? : number){}...//Here is my decorator...exportfunctionInputType(parameters : any){functionactualDecorator(target: any,property: string|symbol,parameterIndex?: number): void{console.log(property);...
I was hoping to get the property name, but the property is undefined.
The text was updated successfully, but these errors were encountered:
cmargulhano
changed the title
Property key in ParameterDecorator always is null
Property key in ParameterDecorator always is undefined
May 17, 2017
cmargulhano
changed the title
Property key in ParameterDecorator always is undefined
Property key in ParameterDecorator is always undefined
May 17, 2017
That is the intended design. There is no paramter discriptor created by the compiler. this is waiting on the finalization of the property declaration ES proposal that will define how initializes will be defined (no definition for it now in the descriptors).
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 2.3.2
Code
I was hoping to get the property name, but the property is undefined.
The text was updated successfully, but these errors were encountered: