Hi, I’m currently testing the new TypeScript support and run into some problems. Before, the following code would compile and run properly:
private updateLabel(l: Entity, visible: boolean, text: string): void {
l.show = visible;
if (l.polyline) {
l.polyline.show = visible;
}
if (l.label) {
l.label.text = text;
}
}
But now the compile throws an error, because “l.polyline.show” is not a boolean, but a Property (or undefined), similar for “l.label.text”.
How am I supposed to change these properties in the correct way?