Closed
Description
TypeScript Version: 2.1.1
Code
class PartialPolicySearchIten {
public displayValue: string;
public oriNumber: string;
public parentName: string;
public sysNumber: string;
public systemCode: number;
public systemName: string;
}
Expected behavior:
class PartialPolicySearchIten {
constructor() {
this.displayValue = undefined;
this.oriNumber = undefined;
this.parentName = undefined;
this.sysNumber = undefined;
this.systemCode = undefined;
this. systemName = undefined;
}
}
Actual behavior:
class PartialPolicySearchIten { }
The problem comes when using Reflection it can't find the properties. I would expected that the properties exists as i'm redefining them. Otherwise their very little point is declaring properties of a class.