Ads skipped

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&apos;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&amp;t=18">0:18</a> typeof / keyof<br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs&amp;t=81">1:21</a> ReturnType / Awaited<br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs&amp;t=179">2:59</a> Prettify (and nesting)<br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs&amp;t=247">4:07</a> Partial / Required<br><a href="https://www.youtube.com/watch?v=q5DFpyIN5Xs&amp;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

LIVE

Why I use Type and not Interface in TypeScript

ByteGrad · 257K views

LIVE

You are a Junior Dev if You Don’t Know These 18 TypeScript Utility Types

Web Dev Simplified · 122K views

LIVE

6 TypeScript tips to turn you into a WIZARD

Matt Pocock · 168K views

LIVE

Learn TypeScript - Full Course for Beginners

freeCodeCamp.org · 339K views

LIVE

Don't learn AI Agents without Learning these Fundamentals

KodeKloud · 1.2M views

LIVE

Java SE 17 Fundamentals #5/11 — Bringing Your Class to Life: Creating Objects

Architect Design Code With Mounir · 53 views

LIVE

TypeScript Full Course - From Beginner to Advanced

Tech With Tim · 297K views

LIVE

My Favorite Open-Source Next.js Project for 2024

Josh tried coding · 42K views

LIVE

TypeScript Origins: The Documentary

OfferZen Origins · 361K views

LIVE

I'm done coding with AI

Brett Codes · 1M views

LIVE

One Formula That Demystifies 3D Graphics

Tsoding · 1M views

LIVE

7 Design Patterns EVERY Developer Should Know

ForrestKnight · 1.3M views

LIVE

TypeScript Generics are EASY once you know this

ByteGrad · 177K views

LIVE

Generics: The most intimidating TypeScript feature

Matt Pocock · 239K views

LIVE

Infer is easier than you think

Matt Pocock · 116K views

LIVE

Intro to Data Architecture (Part 1) | LIVE

Data with Baraa · 240K views

LIVE

Learn Advanced TypeScript In 25 Minutes (infer, extends, ternaries)

Web Dev Simplified · 89K views

LIVE

Backend Complete Course | NodeJS, ExpressJS, JWT, PostgreSQL, Prisma...

PedroTech · 321K views

LIVE

What's wrong with TypeScript Namespaces?

Nicos Tsourektsidis · 3.3K views

LIVE

Typescript Mistakes Every Junior Developer should Avoid | clean-code

CoderOne · 337K views

LIVE

System Design for Beginners (2026)

KodeKloud · 520K views

LIVE

This Amazing TypeScript Feature Has NO Docs!

Web Dev Simplified · 58K views

LIVE

How Did I Not Know This TypeScript Trick Earlier??!

Josh tried coding · 233K views

LIVE

TypeScript Pro: A 4-Hour Deep Dive from Basics to Expert Level

HuXn WebDev · 178K views

LIVE

showing TypeScript's creator DOOM | Anders Hejlsberg | TypeScript Showcase #11

Michigan TypeScript · 84K views

YouTube, with the door locked.

Aegis plays a clean stream instead of YouTube's player, so pre-roll ads, trackers, and fingerprinting never ride along. Drop Shields any time if you want the official player back.