Matt Pocock's Avatar

Matt Pocock

@mattpocock.com.bsky.social

Full-time TypeScript educator. Used to be a voice coach. He/him. Author of Total TypeScript πŸ§™ Hire me to teach your team TypeScript!

14,262 Followers  |  304 Following  |  608 Posts  |  Joined: 28.10.2024  |  1.9594

Latest posts by mattpocock.com on Bluesky

Preview
"Sorry, I Need A TypeScript Playground In Order To Help" Learn how to provide a TypeScript playground when asking for help with your TypeScript questions, making it easier for others to assist you.

www.totaltypescript.com/need-a-playg...

28.05.2025 14:05 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Some smoooooooth template literal types spotted in Vercel's Chat SDK

Gives you automatically typed error codes for multiple features at once.

27.05.2025 14:16 β€” πŸ‘ 57    πŸ” 3    πŸ’¬ 1    πŸ“Œ 0

Lol, whoops

27.05.2025 08:25 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Men will literally write custom mapped types instead of going to therapy

27.05.2025 08:25 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Damn, I really want to make a "UX Patterns For AI Applications" course

All the hard stuff like stream resuming, generative UI, properly streaming markdown, editable plans, showing LLM progress

26.05.2025 14:16 β€” πŸ‘ 27    πŸ” 0    πŸ’¬ 4    πŸ“Œ 1
Post image

Hilarious use case for a mapped type:

Use it to rename an object key your backend developers consistently misspell

parms -> params

26.05.2025 10:32 β€” πŸ‘ 39    πŸ” 1    πŸ’¬ 3    πŸ“Œ 0

Yeah me too, not sure why they designed it like that

24.05.2025 17:19 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
"Sorry, I Need A TypeScript Playground In Order To Help" Learn how to provide a TypeScript playground when asking for help with your TypeScript questions, making it easier for others to assist you.

www.totaltypescript.com/need-a-playg...

23.05.2025 09:36 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
TS Playground - An online editor for exploring TypeScript and JavaScript The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.

This appears to work:

www.typescriptlang.org/play/#code/C...

23.05.2025 09:35 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Some days my brain doesn't work. Today is one of those days

12.05.2025 17:43 β€” πŸ‘ 32    πŸ” 1    πŸ’¬ 4    πŸ“Œ 0

Thanks John!

11.05.2025 20:34 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Don't know!

09.05.2025 20:33 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Could you email team@totaltypescript.com? Finished for the day but they will handle it

29.04.2025 17:06 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Thank u, nuxt

29.04.2025 12:27 β€” πŸ‘ 22    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Absolutely! ❀️

21.04.2025 17:27 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Hey Adam, I found this rancid turd that looks like you πŸ˜‚

21.04.2025 11:52 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Lol how could I not be offended

20.04.2025 18:32 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I think strongly typed metadata is the idea. This is important for meta use cases, like generating open API spec

16.04.2025 20:04 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The theory is to get them the job with free resources, then get their work to pay for the paid course.

12.04.2025 20:01 β€” πŸ‘ 22    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Total TypeScript Essentials Learn how to use TypeScript to level-up your applications as a web developer through exercise driven self-paced workshops and tutorials hosted by TypeScript wizard Matt Pocock.

I also hate paywalls, so I spent 9 months writing a TS book and released it for free:

www.totaltypescript.com/books/total-...

12.04.2025 19:56 β€” πŸ‘ 23    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Spotted in the wild today: a Mutable<T> type.

Does the opposite of Readonly<T>. Weird that TS doesn't have this built-in.

08.04.2025 13:50 β€” πŸ‘ 47    πŸ” 1    πŸ’¬ 3    πŸ“Œ 0

We'll see, I don't see it yet

03.04.2025 08:46 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I've made a breakthrough today - come up with a new style of course that's ready for the AI-assisted developer era.

It's just unbelievably cool, can't wait to show you.

02.04.2025 14:51 β€” πŸ‘ 28    πŸ” 0    πŸ’¬ 3    πŸ“Œ 0

Yes, that's why it returns an async iterable and not an array, like other libs

01.04.2025 14:30 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Two cool things in this snippet:

1. You can use 'glob' from Node instead of a library! (still experimental, available in 22+)

But glob returns an async iterator, which can be annoying to work with. So...

2. Array.fromAsync lets you turn an async iterator into an array. Beautiful.

01.04.2025 11:20 β€” πŸ‘ 104    πŸ” 11    πŸ’¬ 5    πŸ“Œ 1
Preview
AI Engineer Roadmap Want to build AI-powered apps, but don't know where to start? You need a roadmap.

Want to enter the world of AI, but don't know where to start?

I've built a roadmap on how to become an AI Engineer.

We cover:
- What AI engineers are
- What LLM's are used for
- Evals
- A directory of 17 techniques

It's the perfect way to get ahead of the curve.

www.aihero.dev/ai-engineer-...

28.03.2025 13:17 β€” πŸ‘ 45    πŸ” 6    πŸ’¬ 2    πŸ“Œ 1

Awesome, glad you enjoyed it!

28.03.2025 13:07 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Total TypeScript Essentials Learn how to use TypeScript to level-up your applications as a web developer through exercise driven self-paced workshops and tutorials hosted by TypeScript wizard Matt Pocock.

The book is a printed version of what's available free here:

www.totaltypescript.com/books/total-...

28.03.2025 13:07 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

"The AI Engineer Roadmap" dropping soon.

Covering everything you need to enter the AI world:

- What LLM's are used for
- The AI engineer mindset
- Evals
- 17 techniques for improving your LLM-powered apps

26.03.2025 10:36 β€” πŸ‘ 46    πŸ” 5    πŸ’¬ 2    πŸ“Œ 0
LLM Visualization A 3D animated visualization of an LLM with a walkthrough.

This is unbelievably cool

Just keep pressing 'space' to learn how an LLM works

24.03.2025 11:32 β€” πŸ‘ 81    πŸ” 12    πŸ’¬ 5    πŸ“Œ 1

@mattpocock.com is following 20 prominent accounts