mifi / react-lottie-player

Fully declarative React Lottie player
MIT License
494 stars 52 forks source link

Fix the use of Pick type in type definition #120

Closed hongrich closed 5 months ago

hongrich commented 5 months ago

This change was originally made in #111. Pick type only takes two parameters: https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys

The keys should be unioned with |. 'path' and 'animationData' are separated with , which makes them invalid. They also don't need to be picked from AnimationConfig since we already add them in explicitly.