MatchForExport: {
    kenmeiManga: {
        id: string | number;
        title: string;
        status?: string;
        score?: number;
        chaptersRead?: number;
        volumesRead?: number;
        author?: string;
        notes?: string;
        createdAt?: string;
        updatedAt?: string;
        lastReadAt?: string;
    };
    anilistMatches?: {
        confidence?: number;
        manga?: {
            id: number;
            title?: {
                romaji?: string;
                english?: string
                | null;
                native?: string | null;
            };
            format?: string;
            chapters?: number;
            volumes?: number;
            genres?: string[];
        };
    }[];
    selectedMatch?: { format?: string; genres?: string[] };
    status: string;
    matchDate?: Date | string;
}

Minimal match result type for export operations.

Defines the minimal shape needed by flattenMatchResult() for CSV/JSON exports. Compatible with both MangaMatchResult and statistics-normalized results. Used in exportUtils.ts and ExportStatisticsButton.tsx for type safety.

Type declaration

  • ReadonlykenmeiManga: {
        id: string | number;
        title: string;
        status?: string;
        score?: number;
        chaptersRead?: number;
        volumesRead?: number;
        author?: string;
        notes?: string;
        createdAt?: string;
        updatedAt?: string;
        lastReadAt?: string;
    }
  • Optional ReadonlyanilistMatches?: {
        confidence?: number;
        manga?: {
            id: number;
            title?: {
                romaji?: string;
                english?: string | null;
                native?: string | null;
            };
            format?: string;
            chapters?: number;
            volumes?: number;
            genres?: string[];
        };
    }[]
  • Optional ReadonlyselectedMatch?: { format?: string; genres?: string[] }
  • Readonlystatus: string
  • Optional ReadonlymatchDate?: Date | string
export type MatchForExport = {
readonly kenmeiManga: {
id: string | number;
title: string;
status?: string;
score?: number;
chaptersRead?: number;
volumesRead?: number;
author?: string;
notes?: string;
createdAt?: string;
updatedAt?: string;
lastReadAt?: string;
};
readonly anilistMatches?: Array<{
confidence?: number;
manga?: {
id: number;
title?: {
romaji?: string;
english?: string | null;
native?: string | null;
};
format?: string;
chapters?: number;
volumes?: number;
genres?: string[];
};
}>;
readonly selectedMatch?: {
readonly format?: string;
readonly genres?: string[];
};
readonly status: string;
readonly matchDate?: Date | string;
};