Skip to content

Commit 29c2615

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Export EmitterSubscription TypeScript Type
Summary: 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: 859078b71044e8a70a25062ced5c8429a63c23be
1 parent ebc97a6 commit 29c2615

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)