refactor: change type from 'any' to 'unknown' in ApiResponse and EventHandler for better type safety
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Generic API types
|
||||
export interface ApiResponse<T = any> {
|
||||
export interface ApiResponse<T = unknown> {
|
||||
data?: T
|
||||
message?: string
|
||||
error?: string
|
||||
|
||||
Reference in New Issue
Block a user