From 28f3613fe9f69cb6ac062cf0c7308037a6c03819 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Sat, 27 Aug 2022 13:10:23 -0600 Subject: [PATCH] dynamic string support for OopsDialog, https://github.com/phetsims/natural-selection/issues/319 --- js/OopsDialog.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/OopsDialog.ts b/js/OopsDialog.ts index fb3493f17..6cf2abfc2 100644 --- a/js/OopsDialog.ts +++ b/js/OopsDialog.ts @@ -8,6 +8,7 @@ * @author Chris Malley (PixelZoom, Inc.) */ +import TReadOnlyProperty from '../../axon/js/TReadOnlyProperty.js'; import optionize, { EmptySelfOptions } from '../../phet-core/js/optionize.js'; import StrictOmit from '../../phet-core/js/types/StrictOmit.js'; import { HBox, Image, Node, RichText, RichTextOptions } from '../../scenery/js/imports.js'; @@ -35,7 +36,7 @@ export default class OopsDialog extends Dialog { * @param messageString - supports RichText formatting * @param [providedOptions] */ - public constructor( messageString: string, providedOptions?: OopsDialogOptions ) { + public constructor( messageString: string | TReadOnlyProperty, providedOptions?: OopsDialogOptions ) { const options = optionize, DialogOptions>()( {