From 3845250a384be66e601ef245ffc8648dc9ad87e3 Mon Sep 17 00:00:00 2001 From: Sergey Markov Date: Mon, 9 Sep 2024 16:53:37 +0200 Subject: [PATCH] Added missed type definitions for setTimelineValue Signed-off-by: Sergey Markov --- .../src/common/animation-control/animation-controller.ts | 2 +- src/components/src/layer-animation-controller.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/src/common/animation-control/animation-controller.ts b/src/components/src/common/animation-control/animation-controller.ts index f56fe8d4d6..ae7bc184a4 100644 --- a/src/components/src/common/animation-control/animation-controller.ts +++ b/src/components/src/common/animation-control/animation-controller.ts @@ -25,7 +25,7 @@ interface AnimationControllerProps { pauseAnimation: () => void, resetAnimation: () => void, timeline: Timeline | undefined, - setTimelineValue: (x: any) => void + setTimelineValue: (x: T) => void ) => React.ReactElement | null; } diff --git a/src/components/src/layer-animation-controller.tsx b/src/components/src/layer-animation-controller.tsx index b1cd60bd71..57c37def01 100644 --- a/src/components/src/layer-animation-controller.tsx +++ b/src/components/src/layer-animation-controller.tsx @@ -16,7 +16,7 @@ interface LayerAnimationControllerProps { pauseAnimation: () => void, resetAnimation: () => void, timeline: Timeline | undefined, - setTimelineValue: (x: any) => void + setTimelineValue: (x: number | number[]) => void ) => React.ReactElement | null; }