News for hackers. Stuff that matters.
Re:TypeScript is terrible for library developers by 323 on Tuesday August 23, 2022 @04:03PM (#32570679)
Right, but people compose. They take this union and put it in another object, which also allows multiple types for some field, and then they take that object and put it in another one, and then you have a 10 line type declaration for 3 fields.
Re:TypeScript is terrible for library developers by isbvhodnvemrwvn on Wednesday August 24, 2022 @03:21AM (#32575922)
Which is why you can have aliases for those types, each level of abstraction can be nicely wrapped up. It just describes the reality.