- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.9k
 
Open
Description
Hi,
I just ran into a Type issue and thought it would be better to share.
The parseEase here has two return types: EaseFunction and EaseMap. The EaseMap is used when the function doesn’t have any input.
However, when you call parseEase without specifying an easing, like:
gsap.parseEase('Bounce');
gsap.parseEase('Power2');
gsap.parseEase('Back');
it actually returns what looks like an Ease object, which has easeIn, easeOut, and easeInOut properties, for example:
{ easeIn: ƒ, easeOut: ƒ, easeInOut: ƒ }
It seems to me that the parseEase function needs an override to support Ease in its return type.
Metadata
Metadata
Assignees
Labels
No labels