Closed chris-dura closed 1 year ago
Could you arrayify the class instead?
Could you arrayify the class instead?
yep, I'm just not a fan of union types, so wanted to get your opinion :)
This should be a backwards compatible way to support both a single 'myClass' string, a ['myClass']
array, and a multiple string ['my', 'class', 'names']
array.
@chris-dura Thanks for the contribution!
:rocket: PR was released in v2.1.0
:rocket:
BREAKING CHANGE:lightClass
anddarkClass
have changed fromstring
tostring[]
. Before:darkClass: 'my-dark-class'
, after:darkClass: ['my-dark-class']