Skip to content

Commit 679ab46

Browse files
committed
export correct types
1 parent 212bbc2 commit 679ab46

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

packages/react-native-gesture-handler/src/v3/hooks/gestures/useFling.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {
22
BaseGestureConfig,
33
ExcludeInternalConfigProps,
4-
GestureEvents,
54
SingleGesture,
65
SingleGestureName,
76
WithSharedValue,
7+
GestureHandlerEvent,
88
} from '../../types';
99
import { useGesture } from '../useGesture';
1010
import { cloneConfig } from '../utils';
@@ -55,7 +55,7 @@ export function useFling(config: FlingGestureConfig) {
5555
return useGesture(SingleGestureName.Fling, flingConfig);
5656
}
5757

58-
export type FlingGestureEvent = GestureEvents<FlingHandlerData>;
58+
export type FlingGestureEvent = GestureHandlerEvent<FlingHandlerData>;
5959
export type FlingGesture = SingleGesture<
6060
FlingHandlerData,
6161
FlingGestureProperties

packages/react-native-gesture-handler/src/v3/hooks/gestures/useHover.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { GestureHandlerEvent } from 'react-native-reanimated/lib/typescript/hook';
12
import { StylusData } from '../../../handlers/gestureHandlerCommon';
23
import { HoverEffect } from '../../../handlers/gestures/hoverGesture';
34
import {
45
BaseGestureConfig,
56
ExcludeInternalConfigProps,
6-
GestureEvents,
77
SingleGesture,
88
HandlerData,
99
SingleGestureName,
@@ -67,7 +67,7 @@ export function useHover(config: HoverGestureConfig) {
6767
return useGesture(SingleGestureName.Hover, hoverConfig);
6868
}
6969

70-
export type HoverGestureEvent = GestureEvents<HoverHandlerData>;
70+
export type HoverGestureEvent = GestureHandlerEvent<HoverHandlerData>;
7171
export type HoverGesture = SingleGesture<
7272
HoverHandlerData,
7373
HoverGestureProperties

packages/react-native-gesture-handler/src/v3/hooks/gestures/useLongPress.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { GestureHandlerEvent } from 'react-native-reanimated/lib/typescript/hook';
12
import {
23
BaseGestureConfig,
34
ExcludeInternalConfigProps,
4-
GestureEvents,
55
SingleGesture,
66
SingleGestureName,
77
WithSharedValue,
@@ -82,7 +82,7 @@ export function useLongPress(config: LongPressGestureConfig) {
8282
);
8383
}
8484

85-
export type LongPressGestureEvent = GestureEvents<LongPressHandlerData>;
85+
export type LongPressGestureEvent = GestureHandlerEvent<LongPressHandlerData>;
8686
export type LongPressGesture = SingleGesture<
8787
LongPressHandlerData,
8888
LongPressGestureProperties

packages/react-native-gesture-handler/src/v3/hooks/gestures/useManual.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { GestureHandlerEvent } from 'react-native-reanimated/lib/typescript/hook';
12
import {
23
BaseGestureConfig,
34
ExcludeInternalConfigProps,
4-
GestureEvents,
55
SingleGesture,
66
SingleGestureName,
77
} from '../../types';
@@ -27,7 +27,7 @@ export function useManual(config: ManualGestureConfig) {
2727
return useGesture(SingleGestureName.Manual, manualConfig);
2828
}
2929

30-
export type ManualGestureEvent = GestureEvents<ManualHandlerData>;
30+
export type ManualGestureEvent = GestureHandlerEvent<ManualHandlerData>;
3131
export type ManualGesture = SingleGesture<
3232
ManualHandlerData,
3333
ManualGestureProperties

packages/react-native-gesture-handler/src/v3/hooks/gestures/useNative.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { GestureHandlerEvent } from 'react-native-reanimated/lib/typescript/hook';
12
import {
23
BaseGestureConfig,
34
ExcludeInternalConfigProps,
4-
GestureEvents,
55
SingleGesture,
66
SingleGestureName,
77
WithSharedValue,
@@ -46,7 +46,7 @@ export function useNative(config: NativeViewGestureConfig) {
4646
return useGesture(SingleGestureName.Native, nativeConfig);
4747
}
4848

49-
export type NativeGestureEvent = GestureEvents<NativeViewHandlerData>;
49+
export type NativeGestureEvent = GestureHandlerEvent<NativeViewHandlerData>;
5050
export type NativeGesture = SingleGesture<
5151
NativeViewHandlerData,
5252
NativeViewGestureProperties

packages/react-native-gesture-handler/src/v3/hooks/gestures/usePan.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { GestureHandlerEvent } from 'react-native-reanimated/lib/typescript/hook';
12
import { StylusData } from '../../../handlers/gestureHandlerCommon';
23
import {
34
BaseGestureConfig,
45
ExcludeInternalConfigProps,
5-
GestureEvents,
66
SingleGesture,
77
HandlerData,
88
SingleGestureName,
@@ -265,5 +265,5 @@ export function usePan(config: PanGestureConfig) {
265265
);
266266
}
267267

268-
export type PanGestureEvent = GestureEvents<PanHandlerData>;
268+
export type PanGestureEvent = GestureHandlerEvent<PanHandlerData>;
269269
export type PanGesture = SingleGesture<PanHandlerData, PanGestureProperties>;

packages/react-native-gesture-handler/src/v3/hooks/gestures/usePinch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { GestureHandlerEvent } from 'react-native-reanimated/lib/typescript/hook';
12
import {
23
BaseGestureConfig,
34
ExcludeInternalConfigProps,
4-
GestureEvents,
55
SingleGesture,
66
HandlerData,
77
SingleGestureName,
@@ -47,7 +47,7 @@ export function usePinch(config: PinchGestureConfig) {
4747
return useGesture(SingleGestureName.Pinch, pinchConfig);
4848
}
4949

50-
export type PinchGestureEvent = GestureEvents<PinchHandlerData>;
50+
export type PinchGestureEvent = GestureHandlerEvent<PinchHandlerData>;
5151
export type PinchGesture = SingleGesture<
5252
PinchHandlerData,
5353
PinchGestureProperties

packages/react-native-gesture-handler/src/v3/hooks/gestures/useRotation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { GestureHandlerEvent } from 'react-native-reanimated/lib/typescript/hook';
12
import {
23
BaseGestureConfig,
34
ExcludeInternalConfigProps,
4-
GestureEvents,
55
SingleGesture,
66
HandlerData,
77
SingleGestureName,
@@ -51,7 +51,7 @@ export function useRotation(config: RotationGestureConfig) {
5151
return useGesture(SingleGestureName.Rotation, rotationConfig);
5252
}
5353

54-
export type RotationGestureEvent = GestureEvents<RotationHandlerData>;
54+
export type RotationGestureEvent = GestureHandlerEvent<RotationHandlerData>;
5555
export type RotationGesture = SingleGesture<
5656
RotationHandlerData,
5757
RotationGestureProperties

packages/react-native-gesture-handler/src/v3/hooks/gestures/useTap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { GestureHandlerEvent } from 'react-native-reanimated/lib/typescript/hook';
12
import {
23
BaseGestureConfig,
34
ExcludeInternalConfigProps,
4-
GestureEvents,
55
SingleGesture,
66
SingleGestureName,
77
WithSharedValue,
@@ -111,5 +111,5 @@ export function useTap(config: TapGestureConfig) {
111111
);
112112
}
113113

114-
export type TapGestureEvent = GestureEvents<TapHandlerData>;
114+
export type TapGestureEvent = GestureHandlerEvent<TapHandlerData>;
115115
export type TapGesture = SingleGesture<TapHandlerData, TapGestureProperties>;

0 commit comments

Comments
 (0)