-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Unexpected Type Definition for class
and className
#254
Comments
Hmm, please can you private a working reproduction? (not code snippets, but a sandbox of some sorts) |
https://codesandbox.io/p/sandbox/amazing-galois-2d6j7p
|
This appears to be caused by ClassValue and ClassArray being recursive types. As These types look to be very similar to those in clsx, which gets around it by exporting the types. Exporting |
added |
Describe the bug
I'm encountering an issue while using the
[email protected]
library in a monorepo setup with shared style variants for both Next.js and Nuxt.js projects. After usingVite
to bundle the shared project, the generated TypeScript declaration file contains confusing type definitions for theclass
andclassName
properties.It's my learning project, so it includes both
next
andnuxt
.To Reproduce
my
vite.config.ts
Expected behavior
I'm not sure if this is a problem with
cva
or if I'm doing something wrong, I want it to generate the right type.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: