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
In Geometric Optics, many of my visibleProperty instances are DerivedProperty. But I've noticed that when I pass them to Node, declaring them as IReadOnlyProperty<boolean causes a typescript error, complaining that IReadOnlyProperty does not implement set.
In Node.ts:
visibleProperty?: IProperty<boolean>|null,
But Node works with a DerivedProperty for visibleProperty, whose set method is:
set(value: T): void{thrownewError(`Cannot set values directly to a DerivedProperty, tried to set: ${value}`);}
So I'm guessing that visibleProperty should really be:
In Geometric Optics, many of my
visibleProperty
instances areDerivedProperty
. But I've noticed that when I pass them to Node, declaring them asIReadOnlyProperty<boolean
causes a typescript error, complaining thatIReadOnlyProperty
does not implementset
.In Node.ts:
But Node works with a DerivedProperty for
visibleProperty
, whoseset
method is:So I'm guessing that visibleProperty should really be:
The text was updated successfully, but these errors were encountered: