From e417e0bf7cddf7f190aaf145c3eca7018f6f36fb Mon Sep 17 00:00:00 2001 From: Timothy Yung Date: Thu, 6 Sep 2018 12:27:44 -0700 Subject: [PATCH] Update ReactNativeViewConfigRegistry Flow Types (#13579) --- .../shims/react-native/ReactNativeViewConfigRegistry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js b/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js index 4b47b47ce4..7505da514d 100644 --- a/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js +++ b/scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. * * @format - * @flow + * @flow strict-local */ 'use strict'; @@ -30,7 +30,7 @@ const viewConfigCallbacks = new Map(); const viewConfigs = new Map(); function processEventTypes( - viewConfig: ReactNativeBaseComponentViewConfig, + viewConfig: ReactNativeBaseComponentViewConfig<>, ): void { const {bubblingEventTypes, directEventTypes} = viewConfig; @@ -86,7 +86,7 @@ exports.register = function(name: string, callback: ViewConfigGetter): string { * If this is the first time the view has been used, * This configuration will be lazy-loaded from UIManager. */ -exports.get = function(name: string): ReactNativeBaseComponentViewConfig { +exports.get = function(name: string): ReactNativeBaseComponentViewConfig<> { let viewConfig; if (!viewConfigs.has(name)) { const callback = viewConfigCallbacks.get(name);