Closed ElPrudi closed 1 year ago
Why do you need number
and boolean
on the same array?
How do you suggest to fix it, to:
const stuff: (number | boolean)[];
Or just skip?
Just fixed 🎉 ! Is it works for you?
This is often needed when you need to transform data that was collected in an array. Most of the time, these do have some kind of type overlap, but sometimes they don't.
But yes, it works now. Thank you very much :)
Normally, this rule fixes this
to this:
Sadly, this results into a TypeError, since
number
andboolean
have no overlap: