diff --git a/js/UtteranceQueue.ts b/js/UtteranceQueue.ts index 8ea2fe0..0e45a9f 100644 --- a/js/UtteranceQueue.ts +++ b/js/UtteranceQueue.ts @@ -43,12 +43,12 @@ type SelfOptions = { type UtteranceQueueOptions = SelfOptions & PhetioObjectOptions; -class UtteranceQueue extends PhetioObject { +class UtteranceQueue extends PhetioObject { // Sends browser requests to announce either through aria-live with a screen reader or // SpeechSynthesis with Web Speech API (respectively), or any method that implements this interface. Use with caution, // and only with the understanding that you know what Announcer this UtteranceQueue instance uses. - private readonly announcer: Announcer; + private readonly announcer: MyAnnouncer; // Initialization is like utteranceQueue's constructor. No-ops all around if not // initialized (cheers). See constructor() @@ -90,7 +90,7 @@ class UtteranceQueue extends PhetioObject { * which requests speech in some way (such as the Web Speech API or aria-live) * @param [providedOptions] */ - public constructor( announcer: Announcer, providedOptions?: UtteranceQueueOptions ) { + public constructor( announcer: MyAnnouncer, providedOptions?: UtteranceQueueOptions ) { const options = optionize()( { debug: false,