๐—ง๐˜†๐—ฝ๐—ฒ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—ฆ๐˜๐—ฟ๐—ถ๐—ฐ๐˜ ๐— ๐—ผ๐—ฑ๐—ฒ ๐—š๐˜‚๐—ถ๐—ฑ๐—ฒ

TypeScript is relaxed by default. This leads to crashes.

Use strict mode to stop these bugs. Add one line to your tsconfig.json:

"strict": true

This setting turns on 8 safety checks.

It helps you:

You fix problems before your code runs. Your app stays stable.

Do not turn on all flags at once for old projects. You will see too many errors.

Follow this path:

Add these extra flags for more safety:

Start every new project with strict mode. It saves time.

Source: https://dev.to/krunalkanojiya/how-to-enable-strict-mode-and-why-you-should-always-use-it-4fc1