Closed pixelzoom closed 2 years ago
I guess TypeScript is inferring that Property(true) is a Property whose only possible value is true. So I would need to instantiate as:
this.isActiveProperty = new Property<boolean>( true );
Do I understand that correctly?
There must be some other ingredient at play here, since just instantiating new Property(true)
infers type Property<boolean>
:
But without understanding that nuance, yes, I think either new Property<boolean>( true );
or new BooleanProperty( true );
would be good.
This seems wrong.