Skip to content

Commit

Permalink
update options and import support, phetsims/ratio-and-proportion#432
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 4, 2022
1 parent b313e78 commit af1ea19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions js/accessibility/voicing/InteractiveHighlighting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,3 +438,4 @@ const InteractiveHighlighting = <SuperType extends Constructor>( Type: SuperType

scenery.register( 'InteractiveHighlighting', InteractiveHighlighting );
export default InteractiveHighlighting;
export type { InteractiveHighlightingOptions };
6 changes: 3 additions & 3 deletions js/accessibility/voicing/Voicing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -81,7 +81,7 @@ type VoicingSelfOptions = {
voicingUtterance?: Utterance;
};

type VoicingOptions = VoicingSelfOptions & NodeOptions;
type VoicingOptions = VoicingSelfOptions & InteractiveHighlightingOptions;

type SpeakingOptions = {
utterance?: VoicingSelfOptions['voicingUtterance']
Expand Down
1 change: 1 addition & 0 deletions js/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit af1ea19

Please sign in to comment.