nextui-org / tailwind-variants

🦄 Tailwindcss first-class variant API
https://tailwind-variants.org
MIT License
2.42k stars 68 forks source link

fix: VariantProps are of type any #60

Closed zwgnr closed 1 year ago

zwgnr commented 1 year ago

Description

When using the VariantProps generic all of the returned types are now literals instead of any.

What is the purpose of this pull request?

closes: #56

this now gets the proper variant types

twvarfix

jpwallace22 commented 1 year ago

I'm not part of this project but I'm excited to see a fix for this come through! I poked around at it and couldn't figure it out myself, so great job!