exhaustiveness-checking とは?
タグ付き共用体を処理するときに使用します。判別共用体に新しいケースを追加するときに使用します。 switch ステートメントはすべてのケースをカバーする必要がある場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
タグ付き共用体を処理するときに使用します。判別共用体に新しいケースを追加するときに使用します。 switch ステートメントはすべてのケースをカバーする必要がある場合に使用します。
コマンドラインで exhaustiveness-checking AI スキルを開発環境にすばやくインストール
ソース: 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:
タグ付き共用体を処理するときに使用します。判別共用体に新しいケースを追加するときに使用します。 switch ステートメントはすべてのケースをカバーする必要がある場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill exhaustiveness-checkingBrowse more skills from marius-townhouse/effective-typescript-skills
タグ付き共用体を処理するときに使用します。判別共用体に新しいケースを追加するときに使用します。 switch ステートメントはすべてのケースをカバーする必要がある場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill exhaustiveness-checking インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります
https://github.com/marius-townhouse/effective-typescript-skills