News for hackers. Stuff that matters.
Re:A 'CSS reset' for TypeScript, improving types for common ... by mrblampo on Friday March 03, 2023 @07:02AM (#35008421)
Reading https://github.com/total-typescript/ts-reset/blob/main/src/e..., I'm more confused than before. The generic NonFalsy<T>[] looks to me like it should evaluate to never[] if the entire array is false, and to T[] (the original array type, not narrowed) otherwise. But I can see that the test case demonstrates that it works. What am I missing?

There are no comments on this comment yet.