avoiding-any-types
Installation
SKILL.md
- Code contains
anytype annotations - Working with external data (APIs, JSON, user input)
- Designing generic functions or types
- User mentions type safety, type checking, or avoiding
any - Files contain patterns like
: any,<any>,as any
The unknown type is any's type-safe counterpart. It accepts any value like any, but requires type narrowing before use.