avoid-numeric-index とは?
配列のような型を定義するときに使用します。インデックス タイプとして数値を使用したい場合に使用します。配列キーを理解するときに使用します。 ソース: marius-townhouse/effective-typescript-skills。
配列のような型を定義するときに使用します。インデックス タイプとして数値を使用したい場合に使用します。配列キーを理解するときに使用します。
コマンドラインで avoid-numeric-index AI スキルを開発環境にすばやくインストール
ソース: marius-townhouse/effective-typescript-skills。
TypeScript's numeric index signatures are a helpful fiction for catching mistakes, but they don't reflect JavaScript's runtime behavior. Use Array, tuple, or ArrayLike types instead.
This is useful for catching mistakes, even though it's not technically accurate.
Pressure: "I need { [n: number]: T } for a sparse array"
配列のような型を定義するときに使用します。インデックス タイプとして数値を使用したい場合に使用します。配列キーを理解するときに使用します。 ソース: marius-townhouse/effective-typescript-skills。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill avoid-numeric-indexBrowse more skills from marius-townhouse/effective-typescript-skills
配列のような型を定義するときに使用します。インデックス タイプとして数値を使用したい場合に使用します。配列キーを理解するときに使用します。 ソース: marius-townhouse/effective-typescript-skills。
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill avoid-numeric-index インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります
https://github.com/marius-townhouse/effective-typescript-skills