nextui-org / tailwind-variants

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

Incorrect Types #59

Closed rawnly closed 1 year ago

rawnly commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: Copy paste example code

tv({
  base: 'font-bold',
  variants: {
    size: {
      xs: '',
      sm: ''
    },
    flat: {
      true: ''
    }
  },
  defaultVariants: {
    flat: true,

  },
  compoundVariants: []
})

Expected behavior No errors

Screenshots CleanShot 2023-06-09 at 02 33 43@2x

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

omarkhatibco commented 1 year ago

55