Skip to content

Commit

Permalink
Added missed type definitions for setTimelineValue
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Markov <[email protected]>
  • Loading branch information
Sergey Markov committed Sep 9, 2024
1 parent 3a570b5 commit 3845250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface AnimationControllerProps<T extends number | number[]> {
pauseAnimation: () => void,
resetAnimation: () => void,
timeline: Timeline | undefined,
setTimelineValue: (x: any) => void
setTimelineValue: (x: T) => void
) => React.ReactElement | null;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/src/layer-animation-controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3845250

Please sign in to comment.