Skip to content

Commit

Permalink
Improve types, see #45
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 4, 2022
1 parent 1a45bd4 commit 1395276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/common/view/MeanOrMedianScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import CardNodeContainer from '../../common/view/CardNodeContainer.js';
import CASPlotNode from './CASPlotNode.js';
import SoccerModel from '../model/SoccerModel.js';
import ValueReadoutsNode from './ValueReadoutsNode.js';
import { ManualConstraint, Text } from '../../../../scenery/js/imports.js';
import { Node, ManualConstraint, Text } from '../../../../scenery/js/imports.js';
import PhetFont from '../../../../scenery-phet/js/PhetFont.js';
import PlotType from '../model/PlotType.js';
import ScreenView from '../../../../joist/js/ScreenView.js';
Expand All @@ -32,8 +32,8 @@ export type MeanOrMedianScreenViewOptions = MeanOrMedianScreenSelfOptions & Socc
class MeanOrMedianScreenView extends SoccerScreenView {
private readonly accordionBox: CASAccordionBox;

// TODO: need reset, but may want to make an interface for a resettable Node
protected readonly accordionBoxContents: CardNodeContainer | CASPlotNode;
// TODO: SR asks: is this pattern OK for indicating a node that can be cleared and reset?
protected readonly accordionBoxContents: Node & { clear: () => void; reset: () => void; };

constructor( model: SoccerModel, providedOptions: MeanOrMedianScreenViewOptions ) {

Expand Down

0 comments on commit 1395276

Please sign in to comment.