File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/react-dom/src/events Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
import type { TopLevelType } from 'events/TopLevelEventTypes' ;
11
- import type { DOMTopLevelEventType } from './DOMTopLevelEventTypes' ;
12
11
import type {
13
12
DispatchConfig ,
14
13
ReactSyntheticEvent ,
@@ -52,7 +51,7 @@ import getEventCharCode from './getEventCharCode';
52
51
* [TOP_ABORT, { sameConfig }],
53
52
* ]);
54
53
*/
55
- type EventTuple = [ DOMTopLevelEventType , string ] ;
54
+ type EventTuple = [ TopLevelType , string ] ;
56
55
const interactiveEventTypeNames : Array < EventTuple > = [
57
56
[DOMTopLevelEventTypes.TOP_BLUR, 'blur'],
58
57
[DOMTopLevelEventTypes.TOP_CANCEL, 'cancel'],
@@ -155,7 +154,7 @@ nonInteractiveEventTypeNames.forEach(eventTuple => {
155
154
} );
156
155
157
156
// Only used in DEV for exhaustiveness validation.
158
- const knownHTMLTopLevelTypes: Array< DOMTopLevelEventType > = [
157
+ const knownHTMLTopLevelTypes: Array< TopLevelType > = [
159
158
DOMTopLevelEventTypes.TOP_ABORT,
160
159
DOMTopLevelEventTypes.TOP_CANCEL,
161
160
DOMTopLevelEventTypes.TOP_CAN_PLAY,
You can’t perform that action at this time.
0 commit comments