TypeScript option you want to enable beyond strict : noUncheckedIndexedAccess

preview_player
Показать описание
strict (and its sub flag strictNullChecks) can really help prevent null and undefined errors in your runtime #JavaScript. However, it doesn't defend against invalid array and object access.

🚥 Professional Courses

In this tutorial we look at a flag that protects against rogue undefined that might end up in your #TypeScript if this flag is not enabled 🌹

#tutorial #basarat

👇 SUBSCRIBE for MORE 👇

**Feel Free To Read This Lot**

I'm Basarat, That TypeScript Guy and I love helping developers. More about me:

Microsoft MVP for TypeScript
150K contributions on Stackoverflow. Top Contributor for TypeScript.
Book Author : Beginning NodeJS
Book Author : TypeScript Deep Dive
Creator of multiple hot ✨ed Github Open Source projects

Рекомендации по теме
Комментарии
Автор

Hi Basarat, thanks for your great content. Also, you may want to correct the title of your video from "noUncheckIndexedAccess" to "noUncheckedIndexedAccess"

sergiuandrei