@samitouri / QOS-React-2 / commits / 0b61e26983

Update RN typings for a shim (#17138)

Dan Abramov committed Oct 18, 2019 at 18:05 UTC 0b61e26983c20b0a4facb50857133cde4a28555f
1 file changed +13 -2
scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js
+13 -2
@@ -20,8 +20,19 @@ import type {
20 const invariant = require('invariant');
21
22 // Event configs
23 -const customBubblingEventTypes = {};
24 -const customDirectEventTypes = {};
23 +const customBubblingEventTypes: {
24 + [eventName: string]: $ReadOnly<{|
25 + phasedRegistrationNames: $ReadOnly<{|
26 + captured: string,
27 + bubbled: string,
28 + |}>,
29 + |}>,
30 +} = {};
31 +const customDirectEventTypes: {
32 + [eventName: string]: $ReadOnly<{|
33 + registrationName: string,
34 + |}>,
35 +} = {};
36
37 exports.customBubblingEventTypes = customBubblingEventTypes;
38 exports.customDirectEventTypes = customDirectEventTypes;