@webilix/nestjs-helper
Version:
Helper library for NestJS
18 lines • 984 B
TypeScript
import { ExportCsvService, ExportExcelService, ExportPathService, ExportWordService } from './providers';
import { IExport, IExportConfig, IExportOptions, IExportTable } from './export.interface';
import { ExportType } from './export.type';
export declare class ExportService {
private readonly config;
private readonly csvService;
private readonly excelService;
private readonly pathService;
private readonly wordService;
constructor(config: IExportConfig, csvService: ExportCsvService, excelService: ExportExcelService, pathService: ExportPathService, wordService: ExportWordService);
private updateTable;
getPath: () => string;
emptyPath: (date: Date) => Promise<string[]>;
export(type: ExportType, table: IExportTable): Promise<IExport>;
export(type: ExportType, table: IExportTable, options: IExportOptions): Promise<IExport>;
convertToPDF(from: string, to: string): Promise<IExport>;
}
//# sourceMappingURL=export.service.d.ts.map