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

Need to add types to these two maps to unblock React Native sync.
This commit is contained in:
Samuel Susla
2023-01-27 16:55:38 +00:00
committed by GitHub
parent ee85098019
commit 0652bdbd10
@@ -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;