Benny Neugebauer - Type Guards and how they can improve your code quality - TypeScript Berlin Meetup

preview_player
Показать описание
TypeScript's biggest advantage is the syntax for typed code. By following strict typing TypeScript's compiler can warn of errors before they occur at runtime. However, it can sometimes be difficult for the compiler to infer the exact type when writing general-purpose functions. In these cases, type guards can help, and we will learn how to program them.

Benny is directing the web development at South Pole, a consultancy that supports governments and organizations in reducing their environmental footprint. He is an active contributor to open source software, helped 29 million people on StackOverflow, and runs a YouTube channel about TypeScript.

——————————————————

📚 Learn more about Prisma

——————————————————

❓ Get help with Prisma issues

——————————————————

💬 Follow Prisma on social media

——————————————————

🔠Professional captions for your technical videos

——————————————————

✅ Subscribe to Prisma's YouTube channel
Рекомендации по теме
Комментарии
Автор

Thank you Benny, I loved your presentation. Especially trick with never 15:33 and reasoning about why error is unknown.

Small thing for 15:33 (never trick) is that it's not constrain to Enums, I just used it with unions as well.

Thanks so much!

markovujanic