UNPKG

rm-ng-export-to-csv

Version:

A lightweight and customizable Angular library to export JSON data to CSV files with auto-download support. Ideal for charts, tables, reports, and dashboards.

15 lines (12 loc) 479 B
import * as i0 from '@angular/core'; interface CsvHeaderMapping { label: string; key: string; } declare class RmNgExportToCsvService { exportAsCSV<T extends Record<string, any>>(data: T[], filename?: string, headers?: CsvHeaderMapping[]): void; static ɵfac: i0.ɵɵFactoryDeclaration<RmNgExportToCsvService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<RmNgExportToCsvService>; } export { RmNgExportToCsvService }; export type { CsvHeaderMapping };