Re:Ask HN: What are your favorite developer-efficiency tips?
by mpoteat on Saturday May 09, 2020 @12:22AM
(#23122297)
Yeah, TS has one of the most powerful type systems I've come across, with its distributive conditional types and type narrowing logic. Recently I've been using type predicates to "dynamically" expand 'this' in specific clauses.
It's very fun to work with and allows for really safe code.
It's very fun to work with and allows for really safe code.