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
Showing only changes of commit 8f7677ab82 - Show all commits

View File

@ -1,7 +1,6 @@
import * as plugins from './plugins.js'; import * as plugins from './plugins.js';
import * as paths from './paths.js';
import * as helpers from './helpers.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 { export interface IPdfServiceConstructorOptions {
@ -47,7 +46,7 @@ export class PdfService {
*/ */
public async createPdfFromLetterObject(optionsArg: { public async createPdfFromLetterObject(optionsArg: {
letterData: plugins.tsclass.business.ILetter, letterData: plugins.tsclass.business.ILetter,
documentSettings: interfaces.IDocumentSettings documentSettings: IDocumentSettings
}) { }) {
const html = ` const html = `
<script type="module"> <script type="module">