@samitouri / QOS-React-2 / commits / 0652bdbd10

Add flow types to Maps in ReactNativeViewConfigRegistry.js (#26064)

Need to add types to these two maps to unblock React Native sync.

Samuel Susla committed Jan 27, 2023 at 16:55 UTC 0652bdbd10f6192e10f6cab9602f6bbfe5fd2c8e
1 file changed +2 -2
scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js
+2 -2
@@ -34,8 +34,8 @@ const customDirectEventTypes: {
34 exports.customBubblingEventTypes = customBubblingEventTypes;
35 exports.customDirectEventTypes = customDirectEventTypes;
36
37 -const viewConfigCallbacks = new Map();
38 -const viewConfigs = new Map();
37 +const viewConfigCallbacks = new Map<string, ?() => ViewConfig>();
38 +const viewConfigs = new Map<string, ViewConfig>();
39
40 function processEventTypes(viewConfig: ViewConfig): void {
41 const {bubblingEventTypes, directEventTypes} = viewConfig;