From 8f7677ab82209dc235fa315f80b6b8f87d7b750f Mon Sep 17 00:00:00 2001 From: Dominik Schwank Date: Mon, 2 Dec 2024 12:59:19 +0000 Subject: [PATCH] fix: use type import to avoid ts dependency in js files --- ts/classes.pdfservice.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ts/classes.pdfservice.ts b/ts/classes.pdfservice.ts index 83bee2f..f749e2d 100644 --- a/ts/classes.pdfservice.ts +++ b/ts/classes.pdfservice.ts @@ -1,7 +1,6 @@ import * as plugins from './plugins.js'; -import * as paths from './paths.js'; import * as helpers from './helpers.js'; -import * as interfaces from '../ts/interfaces/index.js'; +import type { IDocumentSettings} from '../ts/interfaces/index.js'; export interface IPdfServiceConstructorOptions { @@ -47,7 +46,7 @@ export class PdfService { */ public async createPdfFromLetterObject(optionsArg: { letterData: plugins.tsclass.business.ILetter, - documentSettings: interfaces.IDocumentSettings + documentSettings: IDocumentSettings }) { const html = `