From 51118991d2e79dc730eeaff96b1f858ad3abdf2e Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Fri, 27 Jan 2023 16:26:37 +0000 Subject: [PATCH] Add flow types to Maps in ReactNativeViewConfigRegistry.js --- .../shims/react-native/ReactNativeViewConfigRegistry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js b/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js index 876cf73803b9a..0df7395be015b 100644 --- a/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js +++ b/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js @@ -34,8 +34,8 @@ const customDirectEventTypes: { exports.customBubblingEventTypes = customBubblingEventTypes; exports.customDirectEventTypes = customDirectEventTypes; -const viewConfigCallbacks = new Map(); -const viewConfigs = new Map(); +const viewConfigCallbacks = new Map ViewConfig>(); +const viewConfigs = new Map(); function processEventTypes(viewConfig: ViewConfig): void { const {bubblingEventTypes, directEventTypes} = viewConfig;