Skip to content

Commit 8556825

Browse files
authored
Bring back missing fields from events (#3871)
## Description Some of common attributes were missing from events passed to callback (only types). This PR brings them back. ## Test plan 1. Check that TS correctly suggests `numberOfPointers` and `pointerType` 2. `yarn ts-check` 3. `yarn lint-js`
1 parent f1bd691 commit 8556825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-gesture-handler/src/v3/types/EventTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export type TouchEvent =
4949
| GestureTouchEvent
5050
| NativeSyntheticEvent<GestureTouchEvent>;
5151

52-
export type GestureEvent<THandlerData> = THandlerData;
52+
export type GestureEvent<THandlerData> = HandlerData<THandlerData>;
5353

5454
export type UnpackedGestureHandlerEvent<THandlerData> =
5555
| GestureEvent<THandlerData>

0 commit comments

Comments
 (0)