Skip to content

Commit

Permalink
Move types to type exports (#1389)
Browse files Browse the repository at this point in the history
Babel TS types plugin doesn't check if something is a value or a type so types in export weren't stripped.
  • Loading branch information
jakub-gonet authored Feb 26, 2021
1 parent c1b8a5b commit f1c117b
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ export { Directions } from './Directions';
export { State } from './State';
export { default as gestureHandlerRootHOC } from './gestureHandlerRootHOC';
export { default as GestureHandlerRootView } from './GestureHandlerRootView';

export {
export type {
// event types
GestureEvent,
HandlerStateChangeEvent,
Expand All @@ -25,7 +24,8 @@ export {
PinchGestureHandlerProps,
RotationGestureHandlerProps,
FlingGestureHandlerProps,
// gesture handlers
} from './handlers/gestureHandlers';
export {
TapGestureHandler,
ForceTouchGestureHandler,
LongPressGestureHandler,
Expand All @@ -35,19 +35,18 @@ export {
FlingGestureHandler,
} from './handlers/gestureHandlers';
export { default as createNativeWrapper } from './handlers/createNativeWrapper';
export {
NativeViewGestureHandler,
export type {
NativeViewGestureHandlerPayload,
NativeViewGestureHandlerProps,
} from './handlers/NativeViewGestureHandler';

export {
// buttons props
export { NativeViewGestureHandler } from './handlers/NativeViewGestureHandler';
export type {
RawButtonProps,
BaseButtonProps,
RectButtonProps,
BorderlessButtonProps,
// buttons
} from './components/GestureButtons';
export {
RawButton,
BaseButton,
RectButton,
Expand All @@ -66,7 +65,7 @@ export {
DrawerLayoutAndroid,
FlatList,
} from './components/GestureComponents';
export {
export type {
//events
GestureHandlerGestureEvent,
GestureHandlerStateChangeEvent,
Expand Down Expand Up @@ -98,20 +97,20 @@ export {
RotationGestureHandlerProperties,
FlingGestureHandlerProperties,
ForceTouchGestureHandlerProperties,
// buttons
// buttons props
RawButtonProperties,
BaseButtonProperties,
RectButtonProperties,
BorderlessButtonProperties,
} from './handlers/gestureHandlerTypesCompat';

export { default as Swipeable } from './components/Swipeable';
export {
default as DrawerLayout,
export type {
DrawerLayoutProps,
DrawerPosition,
DrawerState,
DrawerType,
DrawerLockMode,
DrawerKeyboardDismissMode,
} from './components/DrawerLayout';
export { default as DrawerLayout } from './components/DrawerLayout';

0 comments on commit f1c117b

Please sign in to comment.