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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;