Skip to content

Commit

Permalink
Export EmitterSubscription TypeScript Type (#36632)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #36632

Discovered when bumping the RN documentation to typecheck against 0.72, #36109 removed the `EmitterSubscription` type which should be kept public.

Changelog:
[General][Fixed] -  Export EmitterSubscription TypeScript Type

Differential Revision: D44375081

fbshipit-source-id: 5b3f2343e8b3f224bfbc72b285f333afd45269bb
  • Loading branch information
NickGerleman authored and facebook-github-bot committed Mar 24, 2023
1 parent ebc97a6 commit 202ee5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-native/types/__typetests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
DrawerLayoutAndroid,
DrawerSlideEvent,
DynamicColorIOS,
EmitterSubscription,
FlatList,
FlatListProps,
GestureResponderEvent,
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export * from '../Libraries/Utilities/Platform';
export * from '../Libraries/Vibration/Vibration';
export * from '../Libraries/YellowBox/YellowBoxDeprecated';
export * from '../Libraries/vendor/core/ErrorUtils';
export {EmitterSubscription} from '../Libraries/vendor/emitter/EventEmitter';

export * from './public/DeprecatedPropertiesAlias';
export * from './public/Insets';
Expand Down

0 comments on commit 202ee5d

Please sign in to comment.