avoid-numeric-index
No SKILL.md available for this skill.
View on GitHubMore from marius-townhouse/effective-typescript-skills
tsdoc-comments
Use when documenting public APIs. Use when writing library code. Use when using JSDoc-style comments. Use when generating documentation. Use when explaining complex types.
33limit-optional-properties
Use when adding optional properties. Use when types have many optional fields. Use when considering required vs optional.
10structural-typing
Use when surprised by TypeScript accepting unexpected values. Use when designing function parameters. Use when testing with mock objects.
10iterate-objects-safely
Use when iterating over object keys and values. Use when for...in loops produce type errors. Use when Object.entries returns any types. Use when dealing with prototype pollution concerns. Use when considering Map vs object.
10ecmascript-over-typescript-features
Use when choosing between TypeScript and ECMAScript features. Use when writing portable code. Use when considering enum or namespace. Use when targeting multiple JavaScript environments. Use when writing library code.
10understand-type-widening
Use when confused why TypeScript infers general types. Use when const vs let gives different types. Use when literals become string or number.
9