Try to fix Flow issue on Windows

This commit is contained in:
Dan Abramov 2018-05-15 14:07:01 +01:00
parent bb44feb05d
commit 7631024722
1 changed files with 2 additions and 3 deletions

View File

@ -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,