fix(exports): stabilize published types and compatibility with updated dependencies
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user