Skip to content

Commit

Permalink
chore: resolve minor ts style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ocamilomontealegre committed Nov 2, 2024
1 parent b6e2ccd commit 2a0d1cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/common/utils/file.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { fileURLToPath } from "node:url";
import { dirname } from "node:path";

export class FileUtils {
public static getCurrentDirectory = (metaURL: string): string => {
/* eslint-disable */
public static readonly getCurrentDirectory = (metaURL: string): string => {
/* eslint @typescript-eslint/naming-convention: "off" */
const __filename = fileURLToPath(metaURL);
return dirname(__filename);
};
Expand Down
1 change: 1 addition & 0 deletions src/health/controllers/health.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { HEALTH_ENDPOINT } from "@health/models/constants";
import { IHealthMessage } from "@health/models/interfaces";

@controller(HEALTH_ENDPOINT)
// @ts-expect-error: HealthController is missing index signature for 'string'
export class HealthController implements Controller {
public constructor(
@inject(HealthService) private readonly _healthService: HealthService,
Expand Down
5 changes: 1 addition & 4 deletions src/health/services/health.service.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { injectable } from "inversify";
import { HEALTH_MESSAGE } from "@health/models/constants/health-message.constant";
import { IHealthMessage, IHealthService } from "@health/models/interfaces";
export const TYPES = {
HealthService: Symbol.for("HealthService"),
};
import type { IHealthMessage, IHealthService } from "@health/models/interfaces";

@injectable()
export class HealthService implements IHealthService {
Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ const bootstrap = (): void => {
startServer(app, nodeConfig.port);
};

bootstrap();

bootstrap();

0 comments on commit 2a0d1cf

Please sign in to comment.