Learning TypeScript (@LearningTSBook) header
Learning TypeScript (@LearningTSBook) profile picture

Prefer Bluesky: https://www.teapawt.net/t.co/Ofs5YUJF0o 🦋 ✍ by @JoshuaKGoldberg; 🖨 by @oreillymedia

Joined May 2022
Photo by Learning TypeScript (@LearningTSBook)Photo by Learning TypeScript (@LearningTSBook)Photo by Learning TypeScript (@LearningTSBook)Photo by Learning TypeScript (@LearningTSBook)Photo by Learning TypeScript (@LearningTSBook)
This account is moving activity to Bluesky. 🦋 bsky.app/profile/learningtyp…
1
1
6
807
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
2
3
2
25
6,899
Shoutout & thanks to Kenny Lin, @chriskrycho, @jfmengels, @Matheyes, and @_nicojs for advice on the article - you all rock! ❤️
2
6
352
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
1
4
1
21
2,174
🎃 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…
1
2
1
22
2,527
📝 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…
2
8
1
37
8,649
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…
1
1
10
2,479
🎯 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…
1
5
27
3,873
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…
4
17
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…
6
1
27
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!
1
2
4
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…
3
8
71
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…
1
1
1
4
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
1
1
3
📝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
3
7
2
20
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
6
4
45