limit-any-type
π―Skillfrom marius-townhouse/effective-typescript-skills
Helps developers replace unsafe `any` types with precise TypeScript type definitions, improving type safety and code quality.
Part of
marius-townhouse/effective-typescript-skills(83 items)
Installation
npx skills add marius-townhouse/effective-typescript-skills --allnpx skills add marius-townhouse/effective-typescript-skills -s prefer-unknown-over-any exhaustiveness-checkingnpx skills add marius-townhouse/effective-typescript-skills -a opencode claude-codenpx skills add marius-townhouse/effective-typescript-skills -lgit clone https://github.com/marius-townhouse/effective-typescript-skills.gitSkill Details
Use when tempted to use any type. Use when getting type errors that seem hard to fix. Use when migrating JavaScript to TypeScript.
More from this repository10
Generates TypeScript documentation comments (TSDoc) to explain public APIs, complex types, and provide comprehensive code documentation with IDE tooltips.
Transforms callback-based asynchronous code into clean, readable async/await patterns for better type flow and error handling.
Enables gradual TypeScript type checking in JavaScript files using @ts-check and JSDoc annotations without full conversion.
Efficiently initializes multiple TypeScript objects simultaneously using concise object literal syntax and spread operators.
Explores advanced functional programming techniques and type system features in TypeScript for creating more robust and expressive code.
Mirrors external types locally to prevent tight coupling and isolate code from external type changes.
Generates JavaScript code despite TypeScript type errors and demonstrates that TypeScript types are erased at runtime, requiring alternative type checking strategies.
Guides developers through systematic TypeScript module migration, breaking down complex refactoring into manageable, incremental steps.
Explains TypeScript's relationship to JavaScript, highlighting how it adds static typing and catches errors before runtime while remaining fully compatible with JavaScript code.
Displays and simplifies complex TypeScript types to improve IDE readability and developer experience.