Fix TypeScript compilation errors

- Remove unused imports (IsString, Queue)
- Remove unused variables in services.service.ts
- Add skipLibCheck to worker tsconfig
- Set declaration: false in API tsconfig to avoid type portability errors
This commit is contained in:
austindebest
2026-04-20 00:55:20 +01:00
parent dfd2d2188a
commit 38f56f7735
7 changed files with 73 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import { IsString, IsNotEmpty, IsInt, Min, IsOptional, IsUUID } from 'class-validator';
import { IsNotEmpty, IsInt, Min, IsOptional, IsUUID } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreateOrderDto {

View File

@@ -51,7 +51,7 @@ export class ServicesService {
}
async suspend(id: string, tenantId: string) {
const service = await this.findOne(id, tenantId);
await this.findOne(id, tenantId);
return this.prisma.service.update({
where: { id },
@@ -63,7 +63,7 @@ export class ServicesService {
}
async terminate(id: string, tenantId: string) {
const service = await this.findOne(id, tenantId);
await this.findOne(id, tenantId);
return this.prisma.service.update({
where: { id },

View File

@@ -2,7 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"declaration": false,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

View File

@@ -1,4 +1,4 @@
import { Worker, Queue } from 'bullmq';
import { Worker } from 'bullmq';
import { PrismaClient } from '@sdi/database';
import { ProvisioningOrchestrator } from './orchestration/provisioning-orchestrator';
import Redis from 'ioredis';

View File

@@ -3,6 +3,7 @@
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"skipLibCheck": true,
"paths": {
"@sdi/database": ["../../packages/database/src"],
"@sdi/shared-types": ["../../packages/shared-types/src"]