Skip to content

Commit 6584304

Browse files
motiz88facebook-github-bot
authored andcommitted
Make Animated.Interpolation config read-only
Summary: Changelog: [General] [Changed] Type the argument of Animated.interpolate as read-only Reviewed By: javache Differential Revision: D33950698 fbshipit-source-id: b959d34eb9752358f4a8ba1d290b56c099f535e0
1 parent 1f77801 commit 6584304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Animated/nodes/AnimatedInterpolation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ import type {PlatformConfig} from '../AnimatedPlatformConfig';
2323

2424
type ExtrapolateType = 'extend' | 'identity' | 'clamp';
2525

26-
export type InterpolationConfigType = {
26+
export type InterpolationConfigType = $ReadOnly<{
2727
inputRange: $ReadOnlyArray<number>,
2828
outputRange: $ReadOnlyArray<number> | $ReadOnlyArray<string>,
2929
easing?: (input: number) => number,
3030
extrapolate?: ExtrapolateType,
3131
extrapolateLeft?: ExtrapolateType,
3232
extrapolateRight?: ExtrapolateType,
33-
};
33+
}>;
3434

3535
const linear = (t: number) => t;
3636

0 commit comments

Comments
 (0)