Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type safety #12

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Type safety #12

wants to merge 5 commits into from

Conversation

sroddy
Copy link

@sroddy sroddy commented Apr 18, 2021

Hi,
thank you very much for your work on this package. It's been my favorite animation add-on since its very first version years ago!

I've been thinking about a little revamp of the API in order to make it more sound at compile-time.
It leverages tags/keys that are generics on the animation type they want to represent, so that it's guaranteed that you can only add animatables (for example tweens) of the given tag type and also extract values of the animatable while using them for the animation at a later time.

I'll submit this as a draft PR because, if you like the approach, some work needs to be done in order to handle backward compatibility and reword the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant