petalbid-frontend
    Preparing search index...

    Interface ApiResponse<T>

    A generic wrapper for API responses. It provides a standardized structure for both successful and failed requests.

    interface ApiResponse<T> {
        data?: T;
        error?: string;
        message?: string;
    }

    Type Parameters

    • T

      The type of the data expected in a successful response.

    Index

    Properties

    Properties

    data?: T

    The data payload of a successful response. Undefined on error.

    error?: string

    An error message if the request failed. Undefined on success.

    message?: string

    An optional informational message from the server.