What is avoid-numeric-index?
Use when defining array-like types. Use when tempted to use number as index type. Use when understanding array keys. Source: marius-townhouse/effective-typescript-skills.
Use when defining array-like types. Use when tempted to use number as index type. Use when understanding array keys.
Quickly install avoid-numeric-index AI skill to your development environment via command line
Source: 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"
Use when defining array-like types. Use when tempted to use number as index type. Use when understanding array keys. 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 avoid-numeric-indexBrowse more skills from marius-townhouse/effective-typescript-skills
Use when defining array-like types. Use when tempted to use number as index type. Use when understanding array keys. 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 avoid-numeric-index 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