Skip to content

Commit

Permalink
Change MouseButton export type. (#2804)
Browse files Browse the repository at this point in the history
## Description

In #2783 I've moved `MouseButton` enum to `gestureHandlerCommon.ts`, so naturally I had to change export in `index.ts`. The problem is that I've put it inside of `export type` which resulted in TypeScript errors when trying to use it.

### Before 

<img width="1063" alt="Zrzut ekranu 2024-03-13 o 09 34 47" src="https://github.com/software-mansion/react-native-gesture-handler/assets/63123542/274edcd4-8e0e-49a4-aac0-803e301bdd0f">

### After

<img width="664" alt="Zrzut ekranu 2024-03-13 o 09 35 07" src="https://github.com/software-mansion/react-native-gesture-handler/assets/63123542/b994102a-440b-4635-9d0d-ce100c223cfd">


## Test plan

Run `yarn lint:js-root`
  • Loading branch information
m-bert authored Mar 13, 2024
1 parent 7e490f7 commit 20c5109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export type {
// new api event types
GestureUpdateEvent,
GestureStateChangeEvent,
MouseButton,
} from './handlers/gestureHandlerCommon';
export { MouseButton } from './handlers/gestureHandlerCommon';
export type { GestureType } from './handlers/gestures/gesture';
export type {
TapGestureHandlerEventPayload,
Expand Down

0 comments on commit 20c5109

Please sign in to comment.