Skip to content

Commit abccee8

Browse files
authored
Remove remaining any in gesture config type (#3709)
## Description Seems like I've missed one place where `config` was typed as `any` 🙊 ## Test plan `yarn ts-check`
1 parent 12342af commit abccee8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/react-native-gesture-handler/src/v3/hooks/utils/relationUtils.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { ComposedGesture, Gesture, GestureRelations } from '../../types';
1+
import {
2+
BaseGestureConfig,
3+
ComposedGesture,
4+
Gesture,
5+
GestureRelations,
6+
} from '../../types';
27

38
export function isComposedGesture(
49
gesture: Gesture
@@ -53,8 +58,8 @@ function makeSimultaneousWithExternalGestureSymmetric(
5358
}
5459
}
5560

56-
export function prepareRelations(
57-
config: any,
61+
export function prepareRelations<THandlerData, TConfig>(
62+
config: BaseGestureConfig<THandlerData, TConfig>,
5863
handlerTag: number
5964
): GestureRelations {
6065
makeSimultaneousWithExternalGestureSymmetric(

0 commit comments

Comments
 (0)