Export EmitterSubscription TypeScript Type (#36632)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36632

Discovered when bumping the RN documentation to typecheck against 0.72, https://github.com/facebook/react-native/pull/36109 removed the `EmitterSubscription` type which should be kept public.

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

Reviewed By: cortinico

Differential Revision: D44375081

fbshipit-source-id: c8dbd5694d3a728a0a2091210894d27c9d84a012
This commit is contained in:
Nick Gerleman
2023-05-03 15:02:02 +01:00
committed by Lorenzo Sciandra
parent 37abba0193
commit bab46dd321
2 changed files with 6 additions and 0 deletions
@@ -40,6 +40,8 @@ import {
DrawerLayoutAndroid,
DrawerSlideEvent,
DynamicColorIOS,
EmitterSubscription,
EventSubscription,
FlatList,
FlatListProps,
GestureResponderEvent,
+4
View File
@@ -147,6 +147,10 @@ export * from '../Libraries/Utilities/Platform';
export * from '../Libraries/Vibration/Vibration';
export * from '../Libraries/YellowBox/YellowBoxDeprecated';
export * from '../Libraries/vendor/core/ErrorUtils';
export {
EmitterSubscription,
EventSubscription,
} from '../Libraries/vendor/emitter/EventEmitter';
export * from './public/DeprecatedPropertiesAlias';
export * from './public/Insets';