DEV Community

Discussion on: Advanced TypeScript Exercises - Question 9

Collapse
 
chrismatheson profile image
Chris Matheson

@macsikora I actually added a NonEmptyArray type to my codebase a while ago. It’s been useful, but not as much as I had hopped.

Have you found this type useful in a real world setting?

From memory the main “problem” was things like ‘map’ don’t “flow” the underlying type through...