diff --git a/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js b/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js index 876cf73803b9..0df7395be015 100644 --- a/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js +++ b/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js @@ -34,8 +34,8 @@ const customDirectEventTypes: { exports.customBubblingEventTypes = customBubblingEventTypes; exports.customDirectEventTypes = customDirectEventTypes; -const viewConfigCallbacks = new Map(); -const viewConfigs = new Map(); +const viewConfigCallbacks = new Map ViewConfig>(); +const viewConfigs = new Map(); function processEventTypes(viewConfig: ViewConfig): void { const {bubblingEventTypes, directEventTypes} = viewConfig;