Skip to content

Commit

Permalink
Add phetioType to derived property, see: #75
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas committed Jul 27, 2022
1 parent b1b076f commit 69a17a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/intro/model/IntroModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import Vector2 from '../../../../dot/js/Vector2.js';
import DerivedProperty from '../../../../axon/js/DerivedProperty.js';
import IReadOnlyProperty from '../../../../axon/js/IReadOnlyProperty.js';
import Property from '../../../../axon/js/Property.js';
import NumberIO from '../../../../tandem/js/types/NumberIO.js';

type SelfOptions = EmptySelfOptions;

Expand Down Expand Up @@ -119,6 +120,7 @@ export default class IntroModel extends MeanShareAndBalanceModel {
tandem: options.tandem.createTandem( 'meanProperty' ),
phetioDocumentation: 'The ground truth water level mean.',
phetioReadOnly: true,
phetioType: DerivedProperty.DerivedPropertyIO( NumberIO ),
range: new Range( MeanShareAndBalanceConstants.CUP_RANGE_MIN, MeanShareAndBalanceConstants.CUP_RANGE_MAX )
} );

Expand Down

0 comments on commit 69a17a2

Please sign in to comment.