Interface ApiResponse<T>

Common API response structure.

interface ApiResponse<T> {
    data: T;
    headers: Record<string, string>;
    status: number;
}

Type Parameters

  • T

    Type of the response data

Properties

Properties

data: T

Response data of type T.

headers: Record<string, string>

Response headers.

status: number

HTTP status code.