I have this requirement to add an attribute @type. I can't get it working In the JDL-Studio. I then tried adding it manually. In the interface, it's OK but the problem arises when I try to include it in the implementing class`constructor:
export interface IPerson {
...
'@type': string; // here it's ok
}
export class Person implements IPerson {
constructor(
...
// here, however, the compiler goes
// nuts, showing it in red and underlined
public '@type': string
}
I have this requirement to add an attribute
@type
. I can't get it working In the JDL-Studio. I then tried adding it manually. In the interface, it's OK but the problem arises when I try to include it in the implementing class`constructor:Is there any way of achieving this?