FR version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
100% Positive
Analyzed from 189 words in the discussion.
Trending Topics
#type#string#https#www#typescriptlang#org#turns#code#title#simple

Discussion (10 Comments)Read Original on HackerNews
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.
Turns out it's some kind of bags and accessories brand!
https://www.typescriptlang.org/docs/handbook/utility-types.h...
https://www.typescriptlang.org/play/?#code/C4TwDgpgBAcg9gOwK...