airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
30.42k stars 2.86k forks source link

Request for Event Types for Typescript #2906

Closed julianwilkinson closed 1 year ago

julianwilkinson commented 1 year ago

Hi!

Would it be possible to get the typings for events added for use with Typescript?

For example, the event listener for enterFrame emits the object BMEnterFrameEvent with

{
  type: string, 
  currentTime: number, 
  totalTime: number, 
  direction: number
}

but this can't be imported from Lottie like the other types.

renspoesse commented 1 year ago

This has been implemented in https://github.com/airbnb/lottie-web/pull/2920.

julianwilkinson commented 1 year ago

Awesome! Thank you~