Skip to content

Fix sliding number TRANSITION type issue with 'as const' assertion#161

Merged
ibelick merged 1 commit intoibelick:mainfrom
dharanidharansr:fix-sliding-number-transition-type-clean
Sep 17, 2025
Merged

Fix sliding number TRANSITION type issue with 'as const' assertion#161
ibelick merged 1 commit intoibelick:mainfrom
dharanidharansr:fix-sliding-number-transition-type-clean

Conversation

@dharanidharansr
Copy link
Copy Markdown
Contributor

Fixes #159: TypeScript error where motion.span transition prop expects AnimationGeneratorType but was receiving generic string type.

  • Added 'as const' to TRANSITION.type to ensure literal type inference
  • Changed type: 'spring' to type: 'spring' as const
  • Resolves TypeScript compatibility with motion component requirements

Fixes #159: TypeScript error where motion.span transition prop expects
AnimationGeneratorType but was receiving generic string type.

- Added 'as const' to TRANSITION.type to ensure literal type inference
- Changed type: 'spring' to type: 'spring' as const
- Resolves TypeScript compatibility with motion component requirements
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Sep 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
motion-primitives Ready Ready Preview Comment Sep 17, 2025 6:30am

@ibelick ibelick merged commit c1329a3 into ibelick:main Sep 17, 2025
2 checks passed
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.

Sliding number TRANSITION type issue

2 participants