Skip to content

Commit 0b61e26

Browse files
authored
Update RN typings for a shim (#17138)
1 parent 4eeee35 commit 0b61e26

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

scripts/rollup/shims/react-native/ReactNativeViewConfigRegistry.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,19 @@ import type {
2020
const invariant = require('invariant');
2121

2222
// 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+
} = {};
2536

2637
exports.customBubblingEventTypes = customBubblingEventTypes;
2738
exports.customDirectEventTypes = customDirectEventTypes;

0 commit comments

Comments
 (0)