Skip to content

Commit

Permalink
Convert AccordionBox to TypeScript, see phetsims/sun#738
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 13, 2022
1 parent d5d4765 commit 710bdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/view/NumberPlayAccordionBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class NumberPlayAccordionBox extends AccordionBox {
// override the local bounds so they don't change
contentNode.localBounds = innerContentBounds;

super( contentNode, optionize<AccordionBoxOptions>( {
super( contentNode, optionize<AccordionBoxOptions, NumberPlayAccordionBoxSelfOptions, AccordionBoxOptions>( {
// @ts-ignore TODO-TS: titleString should be required
titleNode: new Text( options.titleString, {
font: NumberPlayConstants.ACCORDION_BOX_TITLE_FONT,
Expand Down

0 comments on commit 710bdc2

Please sign in to comment.