From ca81a026e91a91da572f9b634597ecbf1735366e Mon Sep 17 00:00:00 2001 From: steelbrain Date: Sun, 5 Jul 2020 09:25:52 +0500 Subject: [PATCH] :bug: Fix types for ease functions --- index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index d902b0b..94a72a4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3,6 +3,7 @@ declare module 'react-native-circular-progress' { import { Animated, Easing, + EasingFunction, ViewPropTypes, StyleProp, ViewStyle @@ -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()) @@ -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 @@ -203,7 +204,7 @@ declare module 'react-native-circular-progress' { prefill: number, toVal: number, duration: number, - ease?: Function + ease?: EasingFunction ) => void; } }