From 0652bdbd10f6192e10f6cab9602f6bbfe5fd2c8e Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Fri, 27 Jan 2023 16:55:38 +0000 Subject: [PATCH] Add flow types to Maps in ReactNativeViewConfigRegistry.js (#26064) Need to add types to these two maps to unblock React Native sync. --- .../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 876cf73803b9..0df7395be015 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;