Skip to content

Commit

Permalink
Add flow types to Maps in ReactNativeViewConfigRegistry.js (#26064)
Browse files Browse the repository at this point in the history
Need to add types to these two maps to unblock React Native sync.
  • Loading branch information
sammy-SC authored Jan 27, 2023
1 parent ee85098 commit 0652bdb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const customDirectEventTypes: {
exports.customBubblingEventTypes = customBubblingEventTypes;
exports.customDirectEventTypes = customDirectEventTypes;

const viewConfigCallbacks = new Map();
const viewConfigs = new Map();
const viewConfigCallbacks = new Map<string, ?() => ViewConfig>();
const viewConfigs = new Map<string, ViewConfig>();

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

0 comments on commit 0652bdb

Please sign in to comment.