diff --git a/js/accessibility/voicing/InteractiveHighlighting.ts b/js/accessibility/voicing/InteractiveHighlighting.ts index a96b61a15..6333b7655 100644 --- a/js/accessibility/voicing/InteractiveHighlighting.ts +++ b/js/accessibility/voicing/InteractiveHighlighting.ts @@ -438,3 +438,4 @@ const InteractiveHighlighting = ( Type: SuperType scenery.register( 'InteractiveHighlighting', InteractiveHighlighting ); export default InteractiveHighlighting; +export type { InteractiveHighlightingOptions }; diff --git a/js/accessibility/voicing/Voicing.ts b/js/accessibility/voicing/Voicing.ts index cf9a58579..64fde7ba4 100644 --- a/js/accessibility/voicing/Voicing.ts +++ b/js/accessibility/voicing/Voicing.ts @@ -26,11 +26,11 @@ import inheritance from '../../../../phet-core/js/inheritance.js'; import responseCollector from '../../../../utterance-queue/js/responseCollector.js'; -import ResponsePacket, { VoicingResponse, ResponsePacketOptions } from '../../../../utterance-queue/js/ResponsePacket.js'; +import ResponsePacket, { ResponsePacketOptions, VoicingResponse } from '../../../../utterance-queue/js/ResponsePacket.js'; import ResponsePatternCollection from '../../../../utterance-queue/js/ResponsePatternCollection.js'; import Utterance from '../../../../utterance-queue/js/Utterance.js'; import UtteranceQueue from '../../../../utterance-queue/js/UtteranceQueue.js'; -import { InteractiveHighlighting, Node, NodeOptions, scenery, SceneryListenerFunction, voicingUtteranceQueue } from '../../imports.js'; +import { InteractiveHighlighting, InteractiveHighlightingOptions, Node, scenery, SceneryListenerFunction, voicingUtteranceQueue } from '../../imports.js'; import optionize from '../../../../phet-core/js/optionize.js'; import Constructor from '../../../../phet-core/js/types/Constructor.js'; import { TAlertableDef } from '../../../../utterance-queue/js/AlertableDef.js'; @@ -81,7 +81,7 @@ type VoicingSelfOptions = { voicingUtterance?: Utterance; }; -type VoicingOptions = VoicingSelfOptions & NodeOptions; +type VoicingOptions = VoicingSelfOptions & InteractiveHighlightingOptions; type SpeakingOptions = { utterance?: VoicingSelfOptions['voicingUtterance'] diff --git a/js/imports.ts b/js/imports.ts index 7ed27c861..b502fae36 100644 --- a/js/imports.ts +++ b/js/imports.ts @@ -157,6 +157,7 @@ export { default as Reader } from './accessibility/reader/Reader.js'; export { default as KeyStateTracker } from './accessibility/KeyStateTracker.js'; export { default as globalKeyStateTracker } from './accessibility/globalKeyStateTracker.js'; export { default as InteractiveHighlighting } from './accessibility/voicing/InteractiveHighlighting.js'; +export type { InteractiveHighlightingOptions } from './accessibility/voicing/InteractiveHighlighting.js'; export { default as voicingManager } from './accessibility/voicing/voicingManager.js'; export { default as voicingUtteranceQueue } from './accessibility/voicing/voicingUtteranceQueue.js'; export { default as Voicing } from './accessibility/voicing/Voicing.js';