Skip to content

Commit

Permalink
🐛 Fix types for ease functions
Browse files Browse the repository at this point in the history
  • Loading branch information
steelbrain committed Jul 5, 2020
1 parent cca2e86 commit ca81a02
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 ca81a02

Please sign in to comment.