From e1ff2982e8855d6a77486b6d0233fec67ac32eca Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Wed, 29 Oct 2025 09:30:10 -0700 Subject: [PATCH] fix: animation types --- packages/core/ui/animation/index.d.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/core/ui/animation/index.d.ts b/packages/core/ui/animation/index.d.ts index 602a61bcc..eb610adc6 100644 --- a/packages/core/ui/animation/index.d.ts +++ b/packages/core/ui/animation/index.d.ts @@ -1,3 +1,16 @@ export type { Pair, Transformation, TransformationType, TransformationValue, TransformFunctionsInfo, Point3D, AnimationPromise, Cancelable } from './animation-types'; -export { Animation, _resolveAnimationCurve } from './animation'; export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation'; +import type { AnimationDefinition, AnimationPromise } from './animation-types'; + +/** + * Defines a animation set. + */ +export class Animation { + constructor(animationDefinitions: Array, playSequentially?: boolean); + public play: (resetOnFinish?: boolean) => AnimationPromise; + public cancel: () => void; + public isPlaying: boolean; + public _resolveAnimationCurve(curve: any): any; +} + +export function _resolveAnimationCurve(curve: any): any;