Envelope returned by main process for AniList requests. Keeps the renderer/client API consistent and decouples GraphQL format.

interface AniListResponseEnvelope {
    success: boolean;
    data?: Record<string, unknown>;
    error?: {
        message: string;
        status?: number;
        errors?: { message: string }[];
    };
}

Properties

Properties

success: boolean
data?: Record<string, unknown>
error?: { message: string; status?: number; errors?: { message: string }[] }