I added a similar type — “non-empty-string” to a typechecker for PHP, and it’s been adopted widely in the PHP ecosystem. It turns out to be pretty handy, especially when there’s a full type system to support it.
A type like NonEmptyString is a weak defense against that, as a lazy dev can just pass a single space character or something similar.
Turns out it's some kind of bags and accessories brand!
https://www.typescriptlang.org/docs/handbook/utility-types.h...
Edit: nevermind, LLM fooled me.