-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fix TypeScript issue when using moduleResolution: node16
#245
Conversation
…notation when using moduleResolution node16/nodenext due to internal twJoin type (ClassNameValue)
When using this package the |
Hey @LiamMartens! 👋 Exporting the type makes sense to me, even thought about this recently. Could you explain the problem you're trying to solve? I'm just not sure if I understand it correctly. What is the type inference error that happens because of the missing export? I just switched to |
@dcastil I get the issue with the I created a repo : https://github.com/LiamMartens/tailwind-merge-node16-module |
Thanks for the reproduction repo! 🙏 Wow, this is a weird error. |
moduleResolution: node16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! 🙏
This was addressed in release v1.13.2. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [tailwind-merge](https://togithub.com/dcastil/tailwind-merge) | [`1.13.1` -> `1.13.2`](https://renovatebot.com/diffs/npm/tailwind-merge/1.13.1/1.13.2) | [![age](https://badges.renovateapi.com/packages/npm/tailwind-merge/1.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/tailwind-merge/1.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/tailwind-merge/1.13.2/compatibility-slim/1.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/tailwind-merge/1.13.2/confidence-slim/1.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>dcastil/tailwind-merge</summary> ### [`v1.13.2`](https://togithub.com/dcastil/tailwind-merge/releases/tag/v1.13.2) [Compare Source](https://togithub.com/dcastil/tailwind-merge/compare/v1.13.1...v1.13.2) ##### Bug Fixes - Fix grammar and typos in docs by [@​jmmarco](https://togithub.com/jmmarco) in [https://github.com/dcastil/tailwind-merge/pull/249](https://togithub.com/dcastil/tailwind-merge/pull/249) - Fix TypeScript issue when using `moduleResolution: node16` by [@​LiamMartens](https://togithub.com/LiamMartens) in [https://github.com/dcastil/tailwind-merge/pull/245](https://togithub.com/dcastil/tailwind-merge/pull/245) ##### Other - Add tailwind-merge-php to similar packages in docs by [@​JamesHemery](https://togithub.com/JamesHemery) in [https://github.com/dcastil/tailwind-merge/pull/246](https://togithub.com/dcastil/tailwind-merge/pull/246) **Full Changelog**: dcastil/tailwind-merge@v1.13.1...v1.13.2 Thanks to [@​bluetch](https://togithub.com/bluetch) for sponsoring tailwind-merge! ❤️ </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/sebald/pattern-analyzer). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…notation when using moduleResolution node16/nodenext due to internal twJoin type (ClassNameValue)