mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-18 16:13:10 +00:00
🐛 Fix types for ease functions
This commit is contained in:
parent
cca2e8652a
commit
ca81a026e9
7
index.d.ts
vendored
7
index.d.ts
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user