Skip to content

Commit 052bfb7

Browse files
committed
addded type suffix
1 parent a26c22d commit 052bfb7

File tree

10 files changed

+24
-18
lines changed

10 files changed

+24
-18
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
export type { TapGestureConfig } from './useTap';
2-
export { useTap, TapGesture, TapGestureEvent } from './useTap';
2+
export { useTap, TapGestureType, TapGestureEvent } from './useTap';
33

44
export type { FlingGestureConfig } from './useFling';
5-
export { useFling, FlingGesture, FlingGestureEvent } from './useFling';
5+
export { useFling, FlingGestureType, FlingGestureEvent } from './useFling';
66

77
export type { LongPressGestureConfig } from './useLongPress';
88
export {
99
useLongPress,
10-
LongPressGesture,
10+
LongPressGestureType,
1111
LongPressGestureEvent,
1212
} from './useLongPress';
1313

1414
export type { PinchGestureConfig } from './usePinch';
15-
export { usePinch, PinchGesture, PinchGestureEvent } from './usePinch';
15+
export { usePinch, PinchGestureType, PinchGestureEvent } from './usePinch';
1616

1717
export type { RotationGestureConfig } from './useRotation';
1818
export {
1919
useRotation,
20-
RotationGesture,
20+
RotationGestureType,
2121
RotationGestureEvent,
2222
} from './useRotation';
2323

2424
export type { HoverGestureConfig } from './useHover';
25-
export { useHover, HoverGesture, HoverGestureEvent } from './useHover';
25+
export { useHover, HoverGestureType, HoverGestureEvent } from './useHover';
2626

2727
export type { ManualGestureConfig } from './useManual';
28-
export { useManual, ManualGesture, ManualGestureEvent } from './useManual';
28+
export { useManual, ManualGestureType, ManualGestureEvent } from './useManual';
2929

3030
export type { NativeViewGestureConfig } from './useNative';
31-
export { useNative, NativeGesture, NativeGestureEvent } from './useNative';
31+
export { useNative, NativeGestureType, NativeGestureEvent } from './useNative';
3232

3333
export type { PanGestureConfig } from './usePan';
34-
export { usePan, PanGesture, PanGestureEvent } from './usePan';
34+
export { usePan, PanGestureType, PanGestureEvent } from './usePan';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function useFling(config: FlingGestureConfig) {
5555
}
5656

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function useHover(config: HoverGestureConfig) {
4848
}
4949

5050
export type HoverGestureEvent = GestureEvents<HoverHandlerData>;
51-
export type HoverGesture = SingleGesture<
51+
export type HoverGestureType = SingleGesture<
5252
HoverHandlerData,
5353
HoverGestureProperties
5454
>;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function useLongPress(config: LongPressGestureConfig) {
8282
}
8383

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function useManual(config: ManualGestureConfig) {
2828
}
2929

3030
export type ManualGestureEvent = GestureEvents<ManualHandlerData>;
31-
export type ManualGesture = SingleGesture<
31+
export type ManualGestureType = SingleGesture<
3232
ManualHandlerData,
3333
ManualGestureProperties
3434
>;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function useNative(config: NativeViewGestureConfig) {
4646
}
4747

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

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,7 @@ export function usePan(config: PanGestureConfig) {
261261
}
262262

263263
export type PanGestureEvent = GestureEvents<PanHandlerData>;
264-
export type PanGesture = SingleGesture<PanHandlerData, PanGestureProperties>;
264+
export type PanGestureType = SingleGesture<
265+
PanHandlerData,
266+
PanGestureProperties
267+
>;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function usePinch(config: PinchGestureConfig) {
3434
}
3535

3636
export type PinchGestureEvent = GestureEvents<PinchHandlerData>;
37-
export type PinchGesture = SingleGesture<
37+
export type PinchGestureType = SingleGesture<
3838
PinchHandlerData,
3939
PinchGestureProperties
4040
>;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function useRotation(config: RotationGestureConfig) {
3535
}
3636

3737
export type RotationGestureEvent = GestureEvents<RotationHandlerData>;
38-
export type RotationGesture = SingleGesture<
38+
export type RotationGestureType = SingleGesture<
3939
RotationHandlerData,
4040
RotationGestureProperties
4141
>;

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,7 @@ export function useTap(config: TapGestureConfig) {
111111
}
112112

113113
export type TapGestureEvent = GestureEvents<TapHandlerData>;
114-
export type TapGesture = SingleGesture<TapHandlerData, TapGestureProperties>;
114+
export type TapGestureType = SingleGesture<
115+
TapHandlerData,
116+
TapGestureProperties
117+
>;

0 commit comments

Comments
 (0)