7 Awesome TypeScript Types You Should Know
111K views · Sep 15, 2023 · Science & Technology
Comments · 101
@sire_ns · 3 years ago
I'll always appreciate these TS videos any day of the week
36
@kendanieleramiscal4923 · 2 years ago
Another Typescript type, which is not included in the video, is the Pick<T> type, which is the opposite of Omit<T>. Instead of Omitting the property, you include the properties to be picked.
53
@kesoBJJ · 2 years ago
updateTodo example has a bug... you need to prefix fieldsToUpdate with ... if you want to override the todo, otherwise you will create an object with additional fieldsToUpdate property, which contains the values that should be used for updating.
25
@dominikrodler8010 · 2 years ago
One of the rare examples where a rather clickbaity sounding video really delivers 👍
4
@froxx93 · 3 years ago
The exclude util is not necessarily used for more complex types. It's for excluding types from union types in general instead of omitting props from an object type. So you could also use it to exclude e. g. string literals
34
@KnownAcrossTheNebularExpanse · 3 years ago (edited)
I'll never understand why interfaces hide their fields like it's something shameful lol. That Prettify type will save millions of developers including me.
32
@timderks5960 · 2 years ago (edited)
Man, there's a LOT of information in here I never even heard of, but is pretty much exactly what I need, super cool. This would be a great video to add chapters to btw:<br><br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs">0:00</a> Intro<br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs&t=18">0:18</a> typeof / keyof<br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs&t=81">1:21</a> ReturnType / Awaited<br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs&t=179">2:59</a> Prettify (and nesting)<br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs&t=247">4:07</a> Partial / Required<br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs&t=358">5:58</a> Omit / Exclude
18
@karim_ghanem7 · 1 year ago
I love you man for these type of videos♥♥
@ravinrod · 3 years ago
Wow! These are good TypeScript tips. Thank you!
2
@chrise.3114 · 3 years ago
Great stuff Josh! Please never stop posting new content!
1
@C-Wolff · 2 years ago
Great explanations, very well illustrated. Thanks
1
@DevoidFX · 2 years ago
The Prettify type should not exist. It should be a typescript configuration option.
99
Up next

Why I use Type and not Interface in TypeScript
ByteGrad · 257K views

You are a Junior Dev if You Don’t Know These 18 TypeScript Utility Types
Web Dev Simplified · 122K views

6 TypeScript tips to turn you into a WIZARD
Matt Pocock · 168K views

Learn TypeScript - Full Course for Beginners
freeCodeCamp.org · 339K views

Don't learn AI Agents without Learning these Fundamentals
KodeKloud · 1.2M views

Java SE 17 Fundamentals #5/11 — Bringing Your Class to Life: Creating Objects
Architect Design Code With Mounir · 53 views

TypeScript Full Course - From Beginner to Advanced
Tech With Tim · 297K views

My Favorite Open-Source Next.js Project for 2024
Josh tried coding · 42K views

TypeScript Origins: The Documentary
OfferZen Origins · 361K views

I'm done coding with AI
Brett Codes · 1M views

One Formula That Demystifies 3D Graphics
Tsoding · 1M views

7 Design Patterns EVERY Developer Should Know
ForrestKnight · 1.3M views

TypeScript Generics are EASY once you know this
ByteGrad · 177K views

Generics: The most intimidating TypeScript feature
Matt Pocock · 239K views

Infer is easier than you think
Matt Pocock · 116K views

Intro to Data Architecture (Part 1) | LIVE
Data with Baraa · 240K views

Learn Advanced TypeScript In 25 Minutes (infer, extends, ternaries)
Web Dev Simplified · 89K views

Backend Complete Course | NodeJS, ExpressJS, JWT, PostgreSQL, Prisma...
PedroTech · 321K views

What's wrong with TypeScript Namespaces?
Nicos Tsourektsidis · 3.3K views

Typescript Mistakes Every Junior Developer should Avoid | clean-code
CoderOne · 337K views

System Design for Beginners (2026)
KodeKloud · 520K views

This Amazing TypeScript Feature Has NO Docs!
Web Dev Simplified · 58K views

How Did I Not Know This TypeScript Trick Earlier??!
Josh tried coding · 233K views

TypeScript Pro: A 4-Hour Deep Dive from Basics to Expert Level
HuXn WebDev · 178K views

showing TypeScript's creator DOOM | Anders Hejlsberg | TypeScript Showcase #11
Michigan TypeScript · 84K views