fix(exports): stabilize published types and compatibility with updated dependencies

This commit is contained in:
2026-04-16 19:41:55 +00:00
parent cb6b3db15a
commit 40ffc2b355
25 changed files with 4539 additions and 5354 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
import * as plugins from './plugins.js';
import * as path from 'path';
import { SmartPdf } from '@push.rocks/smartpdf';
import type { ITrialBalanceReport, IIncomeStatement, IBalanceSheet } from './skr.types.js';
export interface IPdfReportOptions {
@@ -17,7 +18,7 @@ export interface IPdfReportOptions {
export class PdfReportGenerator {
private exportPath: string;
private options: IPdfReportOptions;
private pdfInstance: plugins.smartpdf.SmartPdf | null = null;
private pdfInstance: SmartPdf | null = null;
constructor(exportPath: string, options: IPdfReportOptions) {
this.exportPath = exportPath;
@@ -28,7 +29,7 @@ export class PdfReportGenerator {
* Initializes the PDF generator
*/
public async initialize(): Promise<void> {
this.pdfInstance = new plugins.smartpdf.SmartPdf();
this.pdfInstance = new SmartPdf();
await this.pdfInstance.start();
}
@@ -598,4 +599,4 @@ export class PdfReportGenerator {
this.pdfInstance = null;
}
}
}
}