diff --git a/src/lib/api/types.ts b/src/lib/api/types.ts index 956e6d8..31d1ed7 100644 --- a/src/lib/api/types.ts +++ b/src/lib/api/types.ts @@ -1,5 +1,5 @@ // Generic API types -export interface ApiResponse { +export interface ApiResponse { data?: T message?: string error?: string diff --git a/src/lib/events.ts b/src/lib/events.ts index 075cec0..b946500 100644 --- a/src/lib/events.ts +++ b/src/lib/events.ts @@ -2,7 +2,7 @@ * Simple event emitter for cross-component communication */ -type EventHandler = (...args: any[]) => void +type EventHandler = (...args: unknown[]) => void class EventEmitter { private events: Map = new Map() @@ -24,7 +24,7 @@ class EventEmitter { } } - emit(event: string, ...args: any[]): void { + emit(event: string, ...args: unknown[]): void { const handlers = this.events.get(event) if (handlers) { handlers.forEach(handler => handler(...args))