From 4b13cb944c84d565f9b9f15f940947d56ed545af Mon Sep 17 00:00:00 2001 From: richard483 Date: Fri, 10 Nov 2023 10:51:21 +0700 Subject: [PATCH] updated tsconfig & import --- src/contract/contract.service.ts | 2 +- tsconfig.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/contract/contract.service.ts b/src/contract/contract.service.ts index aec8d9e..06e85e5 100644 --- a/src/contract/contract.service.ts +++ b/src/contract/contract.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common'; import { ContractRepository } from './contract.repository'; import { IContract } from './interface/contract.interface'; import { jsPDF } from 'jspdf'; -import template from './assets/template.js'; +import template from './assets/template.ts'; @Injectable() export class ContractService { constructor(private contractRepository: ContractRepository) {} diff --git a/tsconfig.json b/tsconfig.json index 960dde1..b670795 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,6 +16,8 @@ "noImplicitAny": false, "strictBindCallApply": false, "forceConsistentCasingInFileNames": false, - "noFallthroughCasesInSwitch": false + "noFallthroughCasesInSwitch": false, + "allowImportingTsExtensions": true, + "emitDeclarationOnly": true } }