diff --git a/typings/react-native-animatable.d.ts b/typings/react-native-animatable.d.ts index af76e97..4363f9f 100644 --- a/typings/react-native-animatable.d.ts +++ b/typings/react-native-animatable.d.ts @@ -158,8 +158,7 @@ type AnimatableAnimationMethods = Partial<{ interface AnimatableComponent

extends NativeMethods, AnimatableAnimationMethods, - Component, - ClassicComponentClass & P> { + Component & P, S> { refs: { [key: string]: Component; }; @@ -170,7 +169,7 @@ interface AnimatableComponent

animation: Animation | CustomAnimation, duration?: number, iterationDelay?: number, - ): Promise; + ): Promise<{ finished: boolean }>; transition( fromValues: T,