From 704c8b01186128ea544b017f8e0ed48ba0295701 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Tue, 10 Mar 2020 10:46:12 +0000 Subject: [PATCH] Fix Flow type for AnyNativeEvent (#18266) --- packages/legacy-events/PluginModuleType.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/legacy-events/PluginModuleType.js b/packages/legacy-events/PluginModuleType.js index 988fdd3296c4d..50f59da97757e 100644 --- a/packages/legacy-events/PluginModuleType.js +++ b/packages/legacy-events/PluginModuleType.js @@ -17,7 +17,7 @@ import type {EventSystemFlags} from 'legacy-events/EventSystemFlags'; export type EventTypes = {[key: string]: DispatchConfig, ...}; -export type AnyNativeEvent = Event | KeyboardEvent | MouseEvent | Touch; +export type AnyNativeEvent = Event | KeyboardEvent | MouseEvent | TouchEvent; export type PluginName = string;