I have been using Gsap with React-Typescript for awhile. I wanted to have an onclick button to skip to the next label and play from that label.
On the Gsap documents, it says that seek can take a label or number. However, looking at animations.d.ts number is the only option out of the two.
Typescript Gsap using seek problem [Solved]
in GSAP
Posted · Edited by Kevonk
Hi All,
I have been using Gsap with React-Typescript for awhile. I wanted to have an onclick button to skip to the next label and play from that label.
On the Gsap documents, it says that seek can take a label or number. However, looking at animations.d.ts number is the only option out of the two.
Thus, is there a work around this?
I used "yarn add gsap" to install the module.
Edit: Solved by adding //@ts-ignore