Replies: 2 comments 1 reply
-
Dived into it a little deeper and found a workaround. import { extendTailwindMerge } from 'tailwind-merge'
tailwindMerge?: Parameters<typeof extendTailwindMerge>[0] |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @stijns96! 👋 Indeed makes sense to export it! I added the issue #504 to track that and will implement it soon. But your approach with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm creating a module in Nuxt 3 where I use the app.config.ts to get certain configuration from the user. In this file I want the user to extend the tailwind merge config.
It looks like this
app.config.ts
export default defineAppConfig({
testModule: {
tailwindMerge: {
extend: {
theme: {
spacing: [
'sm',
'base',
'lg'
]
}
}
}
}
})
Of course I want this to be typed to make it easier, but I can't find out how to make this work, since certain types are not exported.
On this line I can find the actual interface that I need (if I'm right).
How can I make sure to use this in my module?
Beta Was this translation helpful? Give feedback.
All reactions