petalbid-frontend
    Preparing search index...

    Variable apiConst

    api: {
        delete: <T>(url: string) => Promise<ApiResponse<T>>;
        get: <T>(url: string) => Promise<ApiResponse<T>>;
        post: <T>(url: string, body?: unknown) => Promise<ApiResponse<T>>;
        put: <T>(url: string, body?: unknown) => Promise<ApiResponse<T>>;
    } = ...

    Public API client methods.

    Type Declaration

    • delete: <T>(url: string) => Promise<ApiResponse<T>>
    • get: <T>(url: string) => Promise<ApiResponse<T>>
    • post: <T>(url: string, body?: unknown) => Promise<ApiResponse<T>>
    • put: <T>(url: string, body?: unknown) => Promise<ApiResponse<T>>