Skip to content

Commit

Permalink
make levelSelectionButtonOptions optional, #108
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Aug 24, 2022
1 parent 3b69396 commit bb33b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/LevelSelectionButtonGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type SelfOptions = {

// Options for all LevelSelectionButton instances in the group.
// These can be overridden for specific button(s) via LevelSelectionButtonGroupItem.options.
levelSelectionButtonOptions: StrictOmit<LevelSelectionButtonOptions, 'tandem'>;
levelSelectionButtonOptions?: StrictOmit<LevelSelectionButtonOptions, 'tandem'>;

// Options for the default layout, which is a FlowBox. Ignored if createLayoutNode is provided.
flowBoxOptions?: StrictOmit<FlowBoxOptions, 'children'>;
Expand Down Expand Up @@ -78,7 +78,7 @@ export default class LevelSelectionButtonGroup extends Node {
assert && assert( items.length > 0, 'at least one item must be specified' );

const options = optionize<LevelSelectionButtonGroupOptions,
StrictOmit<SelfOptions, 'createLayoutNode' | 'gameLevels'>, NodeOptions>()( {
StrictOmit<SelfOptions, 'createLayoutNode' | 'gameLevels' | 'levelSelectionButtonOptions'>, NodeOptions>()( {

// The default layout is a single row of buttons.
flowBoxOptions: {
Expand Down

0 comments on commit bb33b9e

Please sign in to comment.