Skip to content

Commit 0652bdb

Browse files
authored
Add flow types to Maps in ReactNativeViewConfigRegistry.js (#26064)
Need to add types to these two maps to unblock React Native sync.
1 parent ee85098 commit 0652bdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const customDirectEventTypes: {
3434
exports.customBubblingEventTypes = customBubblingEventTypes;
3535
exports.customDirectEventTypes = customDirectEventTypes;
3636

37-
const viewConfigCallbacks = new Map();
38-
const viewConfigs = new Map();
37+
const viewConfigCallbacks = new Map<string, ?() => ViewConfig>();
38+
const viewConfigs = new Map<string, ViewConfig>();
3939

4040
function processEventTypes(viewConfig: ViewConfig): void {
4141
const {bubblingEventTypes, directEventTypes} = viewConfig;

0 commit comments

Comments
 (0)