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
6.13k stars 982 forks source link

Change `MouseButton` export type. #2804

Closed m-bert closed 8 months ago

m-bert commented 8 months 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