Skip to content

Commit 202ee5d

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Export EmitterSubscription TypeScript Type (facebook#36632)
Summary: Pull Request resolved: facebook#36632 Discovered when bumping the RN documentation to typecheck against 0.72, facebook#36109 removed the `EmitterSubscription` type which should be kept public. Changelog: [General][Fixed] - Export EmitterSubscription TypeScript Type Differential Revision: D44375081 fbshipit-source-id: 5b3f2343e8b3f224bfbc72b285f333afd45269bb
1 parent ebc97a6 commit 202ee5d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/react-native/types/__typetests__/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import {
4040
DrawerLayoutAndroid,
4141
DrawerSlideEvent,
4242
DynamicColorIOS,
43+
EmitterSubscription,
4344
FlatList,
4445
FlatListProps,
4546
GestureResponderEvent,

packages/react-native/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export * from '../Libraries/Utilities/Platform';
147147
export * from '../Libraries/Vibration/Vibration';
148148
export * from '../Libraries/YellowBox/YellowBoxDeprecated';
149149
export * from '../Libraries/vendor/core/ErrorUtils';
150+
export {EmitterSubscription} from '../Libraries/vendor/emitter/EventEmitter';
150151

151152
export * from './public/DeprecatedPropertiesAlias';
152153
export * from './public/Insets';

0 commit comments

Comments
 (0)