Skip to content

Commit

Permalink
Use RangedProperty for better typescript implementation. phetsims/axo…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 5, 2023
1 parent 1439a1e commit ab8d7dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/buoyancy/model/Boat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import NumberProperty from '../../../../axon/js/NumberProperty.js';
import StrictOmit from '../../../../phet-core/js/types/StrictOmit.js';
import Property from '../../../../axon/js/Property.js';
import Utils from '../../../../dot/js/Utils.js';
import { Shape } from '../../../../kite/js/imports.js';
import ThreeUtils from '../../../../mobius/js/ThreeUtils.js';
Expand All @@ -31,7 +30,7 @@ export type BoatOptions = StrictOmit<InstrumentedMassOptions, 'body' | 'shape' |

export default class Boat extends Mass {

public readonly displacementVolumeProperty: Property<number>;
public readonly displacementVolumeProperty: NumberProperty;
public readonly liquidMaterialProperty: TProperty<Material>;
public readonly basin: BoatBasin;

Expand Down

0 comments on commit ab8d7dc

Please sign in to comment.