Skip to content

Commit

Permalink
add phetioDocumentation to SelfOptions, phetsims/chipper#1360
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jan 30, 2023
1 parent 5b38019 commit ec916f0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions js/concentration/model/ConcentrationSolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import TReadOnlyProperty from '../../../../axon/js/TReadOnlyProperty.js';
import RangeWithValue from '../../../../dot/js/RangeWithValue.js';
import Utils from '../../../../dot/js/Utils.js';
import optionize, { EmptySelfOptions } from '../../../../phet-core/js/optionize.js';
import PickOptional from '../../../../phet-core/js/types/PickOptional.js';
import PickRequired from '../../../../phet-core/js/types/PickRequired.js';
import { Color } from '../../../../scenery/js/imports.js';
import { PhetioObjectOptions } from '../../../../tandem/js/PhetioObject.js';
Expand All @@ -25,9 +26,11 @@ import Fluid from '../../common/model/Fluid.js';
import Solute from '../../common/model/Solute.js';
import Solvent from '../../common/model/Solvent.js';

type SelfOptions = EmptySelfOptions;
type SelfOptions = EmptySelfOptions &
PickOptional<PhetioObjectOptions, 'phetioDocumentation'> &
PickRequired<PhetioObjectOptions, 'tandem'>;

type ConcentrationSolutionOptions = SelfOptions & PickRequired<PhetioObjectOptions, 'tandem'>;
type ConcentrationSolutionOptions = SelfOptions;

export default class ConcentrationSolution extends Fluid {

Expand All @@ -52,7 +55,6 @@ export default class ConcentrationSolution extends Fluid {
providedOptions: ConcentrationSolutionOptions ) {

const options = optionize<ConcentrationSolutionOptions, SelfOptions>()( {
// @ts-expect-error TODO CM: fix options or remove the phetioDocumentation, https://github.com/phetsims/chipper/issues/1360
phetioDocumentation: 'The solution in the beaker'
}, providedOptions );

Expand Down

0 comments on commit ec916f0

Please sign in to comment.