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

improve the transitionOpacity type #1

Merged

Conversation

bcastlel
Copy link
Contributor

Greetings!

First of all, I'd like to say thanks for the job you've done! In my opinion, your repos are awesome!

I found that there's currently a TypeScript error when we pass a ref or computed as the transitionOpacity value. And it would be nice to improve the situation, especially because the implementation is ready.

I think the best solution at the moment is to declare it as follows: boolean | Ref<boolean> | ComputedRef<boolean>, because toValue and related types require 3.3+ from a user.

Before changes:
before

After:
after

@smastrom
Copy link
Owner

Thank you very much!

@smastrom smastrom merged commit b9a0297 into smastrom:main Jan 10, 2024
2 checks passed
@bcastlel bcastlel deleted the transition-opacity-type-improvements branch January 27, 2024 15:51
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.

2 participants