Skip to content

Commit

Permalink
Merge pull request #248 from steelbrain/fix-ease-types
Browse files Browse the repository at this point in the history
Fix types for ease functions
  • Loading branch information
Markus Lindqvist authored Jul 5, 2020
2 parents cca2e86 + ca81a02 commit 7c55e7e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ declare module 'react-native-circular-progress' {
import {
Animated,
Easing,
EasingFunction,
ViewPropTypes,
StyleProp,
ViewStyle
Expand Down Expand Up @@ -138,7 +139,7 @@ declare module 'react-native-circular-progress' {
* @type {Function}
* @default Easing.out(Easing.ease)
*/
easing?: () => void;
easing?: EasingFunction;

/**
* Function that's invoked when the animation completes (both on mount and if called with .animate())
Expand Down Expand Up @@ -189,7 +190,7 @@ declare module 'react-native-circular-progress' {
* @param {number} duration
* @param {Function} ease
*/
animate: (toVal: number, duration: number, ease?: Function) => Animated.CompositeAnimation;
animate: (toVal: number, duration: number, ease?: EasingFunction) => Animated.CompositeAnimation;

/**
* Re-run animation with a specified prefill-value
Expand All @@ -203,7 +204,7 @@ declare module 'react-native-circular-progress' {
prefill: number,
toVal: number,
duration: number,
ease?: Function
ease?: EasingFunction
) => void;
}
}

0 comments on commit 7c55e7e

Please sign in to comment.