TypeScript Strict Mode

Write and review TypeScript as if strict mode plus the hardening flags (noUncheckedIndexedAccess, exactOptionalPropertyTypes) are enforced, and migrate loose codebases to full strictness flag by flag without breaking the build. Use when someone asks "how do I get rid of any", "turn on strict mode in an existing project", "is this type assertion safe", "why does tsc say possibly undefined", or when writing new TypeScript that must pass a strict compiler. Do NOT use for migrating between language or runtime versions - use language-version-migrator instead.

SkillMedev 0fe42d1 7.8 KB Updated

File contents

SkillMedev/engineering-workflow/tree/main/skills/typescript-strict commit 0fe42d1632

Frequently asked questions

npx skillmds@latest add skillmedev/typescript-strict-mode