From bb33b9efb25cf99b985b5d090af5ce36a00e9da9 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Wed, 24 Aug 2022 16:10:52 -0600 Subject: [PATCH] make levelSelectionButtonOptions optional, https://github.com/phetsims/vegas/issues/108 --- js/LevelSelectionButtonGroup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/LevelSelectionButtonGroup.ts b/js/LevelSelectionButtonGroup.ts index eea6dd9..0a28be0 100644 --- a/js/LevelSelectionButtonGroup.ts +++ b/js/LevelSelectionButtonGroup.ts @@ -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?: StrictOmit; // Options for the default layout, which is a FlowBox. Ignored if createLayoutNode is provided. flowBoxOptions?: StrictOmit; @@ -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, NodeOptions>()( { + StrictOmit, NodeOptions>()( { // The default layout is a single row of buttons. flowBoxOptions: {