What is exhaustiveness-checking?
Use when handling tagged unions. Use when adding new cases to discriminated unions. Use when switch statements must cover all cases. Source: marius-townhouse/effective-typescript-skills.
Use when handling tagged unions. Use when adding new cases to discriminated unions. Use when switch statements must cover all cases.
Quickly install exhaustiveness-checking AI skill to your development environment via command line
Source: marius-townhouse/effective-typescript-skills.
Use never to ensure all cases in a union are handled.
When you add a new variant to a union type, TypeScript can automatically flag every switch statement that needs updating. This catches errors of omission at compile time.
Without exhaustiveness checking, new union variants are silently ignored:
Use when handling tagged unions. Use when adding new cases to discriminated unions. Use when switch statements must cover all cases. Source: marius-townhouse/effective-typescript-skills.
Stable fields and commands for AI/search citations.
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill exhaustiveness-checkingBrowse more skills from marius-townhouse/effective-typescript-skills
Use when handling tagged unions. Use when adding new cases to discriminated unions. Use when switch statements must cover all cases. Source: marius-townhouse/effective-typescript-skills.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill exhaustiveness-checking Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw
https://github.com/marius-townhouse/effective-typescript-skills