From 696f4b5c39d67bf62d4eae6cfd497293f2c1bd08 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Thu, 15 Dec 2022 09:52:24 -0800 Subject: [PATCH] Fix missing animation type (CircleCI Break) Summary: Accidentally added a reference to a flow type that doesn't exist in TS. This should fix the issue. Changelog: [General][Fixed] - Fix missing animation type Reviewed By: christophpurrer Differential Revision: D42043293 fbshipit-source-id: 03470aa25f503337e9e2b79cf74cff96c15a4ad8 --- Libraries/Animated/Animated.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Libraries/Animated/Animated.d.ts b/Libraries/Animated/Animated.d.ts index 6054244af9d5f4..3301ff377246ff 100644 --- a/Libraries/Animated/Animated.d.ts +++ b/Libraries/Animated/Animated.d.ts @@ -116,6 +116,17 @@ export namespace Animated { type ValueListenerCallback = (state: {value: number}) => void; + type Animation = { + start( + fromValue: number, + onUpdate: (value: number) => void, + onEnd: EndCallback | null, + previousAnimation: Animation | null, + animatedValue: AnimatedValue, + ): void; + stop(): void; + }; + /** * Standard value for driving animations. One `Animated.Value` can drive * multiple properties in a synchronized fashion, but can only be driven by one