Skip to content

Commit 2f40def

Browse files
committed
Use ReadonlyMap
1 parent ad3687d commit 2f40def

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/react-native-gesture-handler/src/v3/hooks/utils

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function remapProps<
125125
TInternalConfig extends Record<string, unknown>,
126126
>(
127127
config: TConfig & TInternalConfig,
128-
propsMapping: Map<string, string>
128+
propsMapping: ReadonlyMap<string, string>
129129
): TInternalConfig {
130130
type MergedConfig = TConfig & TInternalConfig;
131131

@@ -156,7 +156,7 @@ export function useClonedAndRemappedConfig<
156156
config: ExcludeInternalConfigProps<
157157
BaseGestureConfig<TConfig, THandlerData, TExtendedHandlerData>
158158
>,
159-
propsMapping: Map<string, string> = DEFAULT_PROPS_MAPPING,
159+
propsMapping: ReadonlyMap<string, string> = DEFAULT_PROPS_MAPPING,
160160
propsTransformer: (
161161
config: TInternalConfig
162162
) => TInternalConfig = DEFAULT_PROPS_TRANSFORMER

0 commit comments

Comments
 (0)