software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
5.83k stars 952 forks source link

Change `MouseButton` export type. #2804

Closed m-bert closed 1 month ago

m-bert commented 1 month ago

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

Zrzut ekranu 2024-03-13 o 09 34 47

After

Zrzut ekranu 2024-03-13 o 09 35 07

Test plan

Run yarn lint:js-root