fix: use type import to avoid ts dependency in js files

This commit is contained in:
Dominik Schwank 2024-12-02 12:59:19 +00:00
parent 406db92ac1
commit 8f7677ab82

View File

@ -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 = `
<script type="module">