understand-type-widening とは?
TypeScript が一般的な型を推論する理由が混乱している場合に使用してください。 const と let で型が異なる場合に使用します。リテラルが文字列または数値になる場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
TypeScript が一般的な型を推論する理由が混乱している場合に使用してください。 const と let で型が異なる場合に使用します。リテラルが文字列または数値になる場合に使用します。
コマンドラインで understand-type-widening AI スキルを開発環境にすばやくインストール
ソース: marius-townhouse/effective-typescript-skills。
When TypeScript infers a type from a value, it often widens it.
A variable initialized with "x" could be intended to hold any string, or just the literal "x". TypeScript guesses using heuristics, and understanding these helps you write predictable code.
If TypeScript infers a broader type than you expected, you're seeing widening.
TypeScript が一般的な型を推論する理由が混乱している場合に使用してください。 const と let で型が異なる場合に使用します。リテラルが文字列または数値になる場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill understand-type-wideningBrowse more skills from marius-townhouse/effective-typescript-skills
TypeScript が一般的な型を推論する理由が混乱している場合に使用してください。 const と let で型が異なる場合に使用します。リテラルが文字列または数値になる場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill understand-type-widening インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります
https://github.com/marius-townhouse/effective-typescript-skills