mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Try to fix Flow issue on Windows
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
import type {TopLevelType} from 'events/TopLevelEventTypes';
|
||||
import type {DOMTopLevelEventType} from './DOMTopLevelEventTypes';
|
||||
import type {
|
||||
DispatchConfig,
|
||||
ReactSyntheticEvent,
|
||||
@@ -52,7 +51,7 @@ import getEventCharCode from './getEventCharCode';
|
||||
* [TOP_ABORT, { sameConfig }],
|
||||
* ]);
|
||||
*/
|
||||
type EventTuple = [DOMTopLevelEventType, string];
|
||||
type EventTuple = [TopLevelType, string];
|
||||
const interactiveEventTypeNames: Array<EventTuple> = [
|
||||
[DOMTopLevelEventTypes.TOP_BLUR, 'blur'],
|
||||
[DOMTopLevelEventTypes.TOP_CANCEL, 'cancel'],
|
||||
@@ -155,7 +154,7 @@ nonInteractiveEventTypeNames.forEach(eventTuple => {
|
||||
});
|
||||
|
||||
// Only used in DEV for exhaustiveness validation.
|
||||
const knownHTMLTopLevelTypes: Array<DOMTopLevelEventType> = [
|
||||
const knownHTMLTopLevelTypes: Array<TopLevelType> = [
|
||||
DOMTopLevelEventTypes.TOP_ABORT,
|
||||
DOMTopLevelEventTypes.TOP_CANCEL,
|
||||
DOMTopLevelEventTypes.TOP_CAN_PLAY,
|
||||
|
||||
Reference in New Issue
Block a user