You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace all any types with proper TypeScript types
- Add ICacheOptions interface for cache configuration options
- Add ICacheMeta interface for cache entry metadata
- Update ICacheEntry interface to use generic types
- Replace `any[]` with `unknown[]` for function arguments in key strategies
- Replace `any` with `unknown` for cache content parameters across all storage implementations
- Add IMultiCacheKeyStrategy interface for multi-cache decorator
- Add proper type guards in ExpirationStrategy
- Update all storage implementations (Memory, FS JSON, LRU, LRU-Redis, NodeCache, Redis, RedisIO) with proper types
- Fix test files to use `unknown` instead of `any` for error handling and arguments
This improves type safety across the entire codebase by eliminating all `any` types,
making the library more robust and easier to maintain.
0 commit comments