Re:TypeScript is terrible for library developers
by jhanschoo on Wednesday August 24, 2022 @12:06AM
(#32574860)
IME it's precisely the expressivity of nested types and generics and variations thereof that makes it hard for the library author.
The expressivity makes it possible for library authors have IntelliSense give more useful suggestions to the consumer, make automatic inference work in more places for the consumer, and make more illegal usage be impossible, at the expense of complicated type constructs. But of course all these is somewhat optional.
The expressivity makes it possible for library authors have IntelliSense give more useful suggestions to the consumer, make automatic inference work in more places for the consumer, and make more illegal usage be impossible, at the expense of complicated type constructs. But of course all these is somewhat optional.