Typescript, Generics, Polymorphism.
to return an object, not anything. This is a minimum condition that the function output must satisfy. // Define a base interface for all responses to ensure minimal structure interface ApiResponse<T> { data: T; error: string | null; } interface User { id: number; name: string; email: string; } //