3 ms·
Reading https://github.com/total-typescript/ts-reset/blob/main/src/entrypoints/filter-boolean.d.ts https://github.com/total-typescript/ts-reset/blob/main/src/e.
by mrblampo 4y ago
Reading https://github.com/total-typescript/ts-reset/blob/main/src/entrypoints/filter-boolean.d.ts 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?