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
@marlitas and I observed this code was not failing the type check:
// map() does not preserve a property of .length required for DerivedPropertythis.meanProperty=newDerivedProperty(dependencies,()=>calculateMean(this.getActive3DCups().map(waterCup3D=>waterCup3D.waterLevelProperty.value)),{tandem: options.tandem.createTandem('meanProperty'),phetioDocumentation: 'The ground truth water level mean.',phetioReadOnly: true,phetioType: DerivedProperty.DerivedPropertyIO(NumberIO),range: newRange(MeanShareAndBalanceConstants.CUP_RANGE_MIN,0.8),hello: 'true',thusanthousnatoheusnt: true});
Despite the excess properties at the bottom. Perhaps something about the overloaded DerivedProperty constructor is confusing it.
The text was updated successfully, but these errors were encountered:
I sampled several new DerivedProperty instantiation sites with options, and could not trigger this problem. I think it was due to the inconsistent callback signature, but that has been corrected in MSB by using deriveAny. Closing.
@marlitas and I observed this code was not failing the type check:
Despite the excess properties at the bottom. Perhaps something about the overloaded DerivedProperty constructor is confusing it.
The text was updated successfully, but these errors were encountered: