Why Typescript is bad
1.79K subscribers
72 photos
70 links
All topics related to TS

chat: @why_typescript_is_bad_chat
contact: @stuneak
Download Telegram
Extension persistently shows a type of expression on top of // ?^ mark. It's indispensable for debugging of deeply nested type computations.

https://marketplace.visualstudio.com/items?itemName=Orta.vscode-twoslash-queries

10x @dkzlv @khraks_mamtsov
👍8🤯4
Variance annotations are unsound. Contravariant type variable can be pronounced to be covariant, and TS couldn't care less.

Code. Issue.

Also here is an example that actually crashes in runtime.
🤔7👍1👎1
Forwarded from TypeScript Stories
3️⃣2️⃣
Wrong type inference with Capitalize and Uncapitalize utility types.

▶️ Playground
🎉4
JSON.stringify can return undefined and it is ok??

Playground.
👏17🤬3🫡3👀2
Eh?
🫡9🎉3🤬2🙏1
👎21👀4👍1🤬1
That's it.
🫡20👀11🤬1