mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 19:32:08 +01:00
feat: complete development environment setup and code quality improvements
- Set up pre-commit hooks with husky and lint-staged for automated code quality - Improved TypeScript type safety by replacing 'any' types with proper generics - Fixed markdown linting violations (MD030 spacing) across all documentation - Fixed compound adjective hyphenation in technical documentation - Fixed invalid JSON union syntax in API documentation examples - Automated code formatting and linting on commit - Enhanced error handling with better type constraints - Configured biome and markdownlint for consistent code style - All changes verified with successful production build
This commit is contained in:
@ -47,7 +47,7 @@ export interface CacheStats {
|
||||
/**
|
||||
* High-performance memory cache with advanced features
|
||||
*/
|
||||
export class PerformanceCache<K extends {} = string, V = any> {
|
||||
export class PerformanceCache<K extends {} = string, V = unknown> {
|
||||
private cache: LRUCache<K, CacheEntry<V>>;
|
||||
private stats: {
|
||||
hits: number;
|
||||
@ -245,7 +245,7 @@ class CacheManager {
|
||||
/**
|
||||
* Create or get a named cache instance
|
||||
*/
|
||||
getCache<K extends {} = string, V = any>(
|
||||
getCache<K extends {} = string, V = unknown>(
|
||||
name: string,
|
||||
options: CacheOptions = {}
|
||||
): PerformanceCache<K, V> {
|
||||
|
||||
Reference in New Issue
Block a user