Closed tachyon-ops closed 3 years ago
Can you add a usage test here?
Sure:
<nav className={cc([ css.navbar, 'navbar-default', 'navbar-fixed-top' ])}>
It yields
<nav class="navbar navbar-default navbar-fixed-top">
Intellj is always complaining with current definition.
@nmpribeiro Thanks, but the usage test should be added here:
["btn", "btn-active"],
Is type string[]
@nmpribeiro Added string array to allow a string array to be passed to the classcat() function.
I believe arrays are already covered here.
Correct me if I am wrong, but this PR doesn't allow you to do anything that isn't already allowed here.
Hum, yes it's already functioning. The reason for my proposal was due to the fact WebStorm doesn't seem able to pick ClassArray, so I get annoying errors on the idea.
Let me see these days if I can support my claim a bit better
It's been a while and this simply fell off my radar. Are you still interested in this? @nmpribeiro 👋
Hi, huu I haven’t used it for a while now... even moved away from intellij
Fine. Let's close then! 👌
Added string array to allow a string array to be passed to the classcat() function. Tested and working.