From cec49ea3824debd0d857d5ba265e6ee4b31cbe45 Mon Sep 17 00:00:00 2001 From: Dominic Garms Date: Mon, 22 Nov 2021 09:06:40 +0800 Subject: [PATCH] Add missing typings of TweenVars This PR adds missing typings for the `to | from` props --- packages/react-gsap/src/Tween.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-gsap/src/Tween.tsx b/packages/react-gsap/src/Tween.tsx index 569ed3c..0f60d8f 100644 --- a/packages/react-gsap/src/Tween.tsx +++ b/packages/react-gsap/src/Tween.tsx @@ -1,5 +1,6 @@ import React, { Fragment, ReactElement } from 'react'; import { gsap } from 'gsap'; +import TweenVars = gsap.TweenVars; import { PlayState } from './types'; import { getTweenFunction, @@ -46,8 +47,8 @@ export type TweenProps = { target?: number | string; position?: string | number; - from?: any; - to?: any; + from?: TweenVars; + to?: TweenVars; stagger?: Stagger; duration?: number;