Skip to content

Commit 5b62cf2

Browse files
Add Alerter.js options to phet-types.d.ts, see phetsims/greenhouse-effect#97
1 parent 67b932f commit 5b62cf2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

eslint/.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@ module.exports = {
10401040
SoundGeneratorOptions: 'readonly',
10411041
PathOptions: 'readonly',
10421042
ColorDef: 'readonly',
1043-
ScreenViewOptions: 'readonly'
1043+
ScreenViewOptions: 'readonly',
1044+
AlerterOptions: 'readonly'
10441045
}
10451046
};

phet-types.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,4 +315,10 @@ type CheckboxOptions = {} & _NodeOptions;
315315
type QSMType = {
316316
getAll: ( a: any ) => any
317317
};
318+
319+
type AlerterOptions = {
320+
alertToVoicing?: boolean;
321+
descriptionAlertNode?: any;
322+
};
323+
318324
declare var QueryStringMachine: QSMType;

0 commit comments

Comments
 (0)