We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ClassValidator type is exported in source code, but not in the dist build dts file
ClassValidator
dts
import type { ClassValidator } from 'tailwind-merge';
It should export
The text was updated successfully, but these errors were encountered:
Hey @xsjcTony! 👋
The ClassValidator type is used internally but it isn't exported from the package. You can see all the package exports here: https://github.com/dcastil/tailwind-merge/blob/v2.0.0/src/index.ts
The type is really simple and you can recreate it in your own codebase if you want:
type ClassValidator = (classPart: string) => boolean
Sorry, something went wrong.
Yep that's true. But
That makes sense, although that would of course only happen in a major release. I'll add the type to the library exports in the next release.
This was addressed in release v2.1.0.
Successfully merging a pull request may close this issue.
Describe the bug
ClassValidator
type is exported in source code, but not in the dist builddts
fileTo Reproduce
import type { ClassValidator } from 'tailwind-merge';
Expected behavior
It should export
Environment
Additional context
The text was updated successfully, but these errors were encountered: