Exports a full sync report to a JSON file.
The sync report to export.
If the report is missing, a warning is logged and no file is exported.
exportSyncReport(report); Copy
exportSyncReport(report);
export function exportSyncReport(report: SyncReport): void { if (!report) { console.warn("No report to export"); return; } exportJsonFile(report, "anilist-sync-report", report.timestamp); console.log("Sync report exported successfully");} Copy
export function exportSyncReport(report: SyncReport): void { if (!report) { console.warn("No report to export"); return; } exportJsonFile(report, "anilist-sync-report", report.timestamp); console.log("Sync report exported successfully");}
Exports a full sync report to a JSON file.