
Prefer Bluesky: https://www.teapawt.net/t.co/Ofs5YUJF0o 🦋 ✍ by @JoshuaKGoldberg; 🖨 by @oreillymedia
Joined May 2022
- Tweets104
- Following26
- Followers1.6K
- Likes265
Pinned Tweet
This account is moving activity to Bluesky. 🦋
bsky.app/profile/learningtyp…
New Learning TypeScript article: Branded Types 📛
TypeScript is great, but what happens when you want even more specificity than what it allows? Say, differentiating sanitized and un-sanitized strings, or positive integers from all numbers?
learningtypescript.com/artic…
#typescript
Shoutout & thanks to Kenny Lin, @chriskrycho, @jfmengels, @Matheyes, and @_nicojs for advice on the article - you all rock! ❤️
New Learning TypeScript article: Why TypeScript Doesn't Include a throws Keyword 🙋
It's often requested for TypeScript, but comes with downsides that make it ill-suited for the JavaScript ecosystem. Read on to learn more! 📖
learningtypescript.com/artic…
#javascript #typescript
🎃 New Learning TypeScript article for Halloween: Narrowing Function Parameters With Rests And Tuples. A scarily useful technique for the occasional function with dependent parameter types!
What does that mean? What are the alternatives? Read within! 👻
learningtypescript.com/artic…
📝 New Learning TypeScript article: Why TypeScript Doesn't Follow Strict Semantic Versioning
A juicy topic, with info on:
* What & why of semver
* Why strict semver is impractical for TypeScript
* How TypeScript adheres to a looser semver instead
learningtypescript.com/artic…
You can find more interesting discussion on this thread:
www.teapawt.net/matteocollina/status/1…
A lot of you like TypeScript. How do you deal with the fact that it does not respect semantic versioning? This seems so much of a deal breaker to me... and I get bitten by it every single time I use TS.
1
645
♟️ A new entry has been added to Extreme Explorations of TypeScript's Type System!
Type System Chess, by @DanielJamesNZ: github.com/Dragon-Hatcher/ty…
"This repo contains chess implemented entirely in the (stable) Rust and Typescript type systems." 👏
learningtypescript.com/artic…
🎯 New Learning TypeScript article: Why Increase Your TSConfig 'target'
Let's cover explains:
* The benefits of using a relatively recent compilerOptions > target
* How to choose as recent a target as your users can handle
Details within: 👉 learningtypescript.com/artic…
New Learning TypeScript article:
👉 The `satisfies` Operator 👈
TypeScript 4.9 introduces a happy compromise between default type inference and type annotations. How does that work, and what does that all mean - read on! 📖
learningtypescript.com/artic…
Happy 10th birthday, @typescript! 🥳🎂
TypeScript Turns Ten Today! 🎂🥳
We're humbled and grateful for our community and all that you've done! We wouldn't be here without you, and you've made these past 10 years amazing!
devblogs.microsoft.com/types…
9
📣 New Learning TypeScript article: Objects, Functions, and Type Narrowing!
Let's dive in together on how TypeScript's type narrowing plays with objects and functions. When will TypeScript "narrow" a value? When won't it, and why?
learningtypescript.com/artic…
Reminder to @halfstackconf Newquay attendees: tweet us why you learned or want to learn #TypeScript for a random chance at a free e-book of Learning TypeScript!
New Learning TypeScript article: 🤘 Extreme Explorations of TypeScript's Type System 🤘!
All the wackiest shenanigans devs have constructed purely in the @TypeScript type system. Binary arithmetic, maze solvers, SQL parsers, and full-on runtimes. 🤯
learningtypescript.com/artic…
1. 4-Bit Virtual Machine (@acutmore, 2019): a 4 bit stack supporting program instructions such as "push" and "peek". 👏
learningtypescript.com/artic…
gist.github.com/acutmore/9d2…
www.teapawt.net/acutmore/status/117582…
So...a joke with a colleague at work got a little bit out of hand. I wrote a 4-Bit Virtual Machine in @typescript, using just Types, no JavaScript.
gist.github.com/acutmore/9d2…
Added an addendum to the article thanks to an insightful point by @anat_in_a_hat - yes, there are cases where important returned values get dropped. Mainly: Promises!
www.teapawt.net/anat_in_a_hat/status/1…
📝New Learning TypeScript article: Void-Returning Function Assignability!
Why are function type with non-void returns considered assignable to function types with a void return in TypeScript? Read about it here: learningtypescript.com/artic… #typescript
📝New Learning TypeScript article: Void-Returning Function Assignability!
Why are function type with non-void returns considered assignable to function types with a void return in TypeScript? Read about it here: learningtypescript.com/artic… #typescript
Got your own TypeScript questions? Tweet me and the answer might become an article too!
Inspired by the thread on this excellent tweet from @haroenv:
www.teapawt.net/haroenv/status/1534186…
lol a void-returning function is allowed to return something?? typescriptlang.org/play?#cod…
Hello, world! The Learning TypeScript book is available now in electronic and print editions. Follow this account for tweets on the book's articles, projects, and latest+greatest happenings! ✨
oreilly.com/library/view/lea…
✍ by @JoshuaKGoldberg; 🖨 by @OReillyMedia





