News for hackers. Stuff that matters.
Re:TypeScript is terrible for library developers by Smaug123 on Wednesday August 24, 2022 @02:41AM (#32575655)
First hit for "Typescript equals in generic" is https://stackoverflow.com/questions/56843790/typescript-gene... which explains it. No search results in the docs, sure, but the very first hit for the first query I tried gave me the answer.
Re:TypeScript is terrible for library developers by account-5 on Wednesday August 24, 2022 @06:47AM (#32577582)
Whilst that's good, the TS documents should document this. Google searching and stackoverflow is not a valid replacement for actual documentation, IMO.
Re:TypeScript is terrible for library developers by Smaug123 on Wednesday August 24, 2022 @04:29PM (#32585325)
Certainly they should document it, but as an answer to "(because have you tried googling "what does <T=...> in Typescript mean"?)", I think it seems pretty conclusive :P