Skip to content
0:00 / 0:00

#typescript#tsconfig#switch-case

IMPROVE YOUR SWITCH CASES ✨ | TS2322 | TS2366 | TS7030 | TYPESCRIPT

TypeScript with Benny Code

15K subscribers • 1 video on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.

Intermediate. Assumes working knowledge.

4.6K views5 years ago2 recommendations

Programming languagesTools and practiceTypeScriptDebugging

Learn how to configure TypeScript to detect missing switch cases and handle exhaustiveness checking using compiler flags.

Learn how to find missing switch cases in your TypeScript code. typescript.tv/best-practices/improve-your-switch-cases-with-… *My FREE programming apps:* - apps.apple.com/app/id659282498 - play.google.com/store/apps/details?id=com.welovecoding.app *My FREE TypeScript Course:* - typescript.tv/ Timeline: - Problem Scenario - Error TS2366: Function lacks ending return statement - No Implicit Returns (tsconfig setting) - Error TS7030: Not all code paths return a value - Explicit Returns - Error TS2322: Type 'undefined' is not assignable - Narrowing a return type - Create a custom type Follow Us: 🌐 typescript.tv/​ 🐦 twitter.com/typescripttv 📺 youtube.com/typescripttv​ Hashtags: #TypeScript #WebDev #Programming #TypeScriptTV

Why it's here

2 people recommend this

What people say. Recommended for learning how to enforce exhaustive switch-case checks in TypeScript.

u/Lipisin r/typescript • Recommends

Find missing cases in your switch statements

u/typescripttvin r/typescript • Recommends

Find missing cases in your switch statements