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

Merged
philkunz merged 1 commits from fix/use-type-import into master 2024-12-02 13:38:00 +00:00

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">