Skip to content
Web Dev Simplified
×0.6YouTube long-formSponsored

Stop Writing TypeScript Code Like This

WDWeb Dev Simplified@WebDevSimplified · 1.8M subscribers
Views
28.2K
28,232
Outlier
×0.6
Median 47.5K
Length
12:12
Published
Mar 3
Tuesday
Comments
72
936 likes

Script

No transcript

Scout reads the transcripts of each creator's 12 latest long-form videos. This one isn't among them yet.

Description

1 sponsor line

SponsorMaster TypeScript utility types with my FREE TS Util Types Cheat Sheet - 18+ types 👉 https://webdevsimplified.com/ts-utili...

Become a senior TypeScript developer with my Full TypeScript Course - 50+ videos, 10+ hours+ 👉 https://courses.webdevsimplified.com/...

One of the best features of TypeScript is its inference, but that inference can also be a negative. In this video I talk all about why you may want to use explicit return types in TypeScript since it can solve many common typing issues and in some cases is even required by TypeScript.

📚 Materials/References:

FREE TS Utility Types Cheat Sheet: https://webdevsimplified.com/ts-utili...

TypeScript Simplified Course: https://courses.webdevsimplified.com/...

🌎 Find Me Here:

My Blog: https://blog.webdevsimplified.com/

My Courses: https://courses.webdevsimplified.com/

Patreon:   / webdevsimplified

Twitter:   / devsimplified

Discord:   / discord

GitHub: https://github.com/WebDevSimplified

CodePen: https://codepen.io/WebDevSimplified

⏱️ Timestamps:

00:00 - Introduction

00:46 - Recursive functions

01:32 - Catching errors

04:01 - When to use vs not use return types

07:00 - Optionally very useful return types

#TSReturnTypes #WDS #TypeScript

More from Web Dev Simplified

Search Scout

Search creators, videos and pages, then press Enter to open one.