Merge pull request 'fix: use type import to avoid ts dependency in js files' (#1) from fix/use-type-import into master

Reviewed-on: #1
This commit is contained in:
Philipp Kunz 2024-12-02 13:37:59 +00:00
commit bc4f018b06

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