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

Fix TypeScript error in GroupPlaybackControls.ts #2835

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

morganwalkup
Copy link

@morganwalkup morganwalkup commented Oct 17, 2024

Makes the fallback argument optional to satisfy the AnimationPlaybackControls interface and resolve typescript errors for consumers of Framer Motion:

image

Context

I'm consuming [email protected] in a project running [email protected], and receiving the above TypeScript error from node_modules/framer-motion/dist/index.d.ts. There seems to be a mismatch in the types between GroupPlaybackControls and AnimationPlaybackControls

Make the fallback argument optional to satisfy the AnimationPlaybackControls interface and resolve typescript errors in the final build
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