fix(core): update

This commit is contained in:
2024-02-16 19:18:20 +01:00
parent 1ebfa25695
commit 4769548dad
3 changed files with 9 additions and 2 deletions

View File

@@ -10,6 +10,13 @@ export interface IPdfServiceConstructorOptions {
* a pdf service for generating pdfs
*/
export class PdfService {
// STATIC
public static async createAndStart(optionsArg: IPdfServiceConstructorOptions) {
const pdfService = new PdfService(optionsArg);
await pdfService.start();
return pdfService;
}
// INSTANCE
options: IPdfServiceConstructorOptions;