From c394cd6c6cc34f33a2bb31fd04e60f7569bbf32d Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 15 Dec 2023 14:43:05 +0000 Subject: [PATCH] Ensure all classes are exported consistently --- project/src/callbacks/GameCallbacks.ts | 4 +--- project/src/callbacks/LauncherCallbacks.ts | 4 +--- project/src/callbacks/ModCallbacks.ts | 4 +--- project/src/controllers/TradeController.ts | 6 ++---- project/src/helpers/ItemHelper.ts | 4 +--- 5 files changed, 6 insertions(+), 16 deletions(-) diff --git a/project/src/callbacks/GameCallbacks.ts b/project/src/callbacks/GameCallbacks.ts index c2938d06..1bd895f2 100644 --- a/project/src/callbacks/GameCallbacks.ts +++ b/project/src/callbacks/GameCallbacks.ts @@ -21,7 +21,7 @@ import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; import { Watermark } from "@spt-aki/utils/Watermark"; @injectable() -class GameCallbacks implements OnLoad +export class GameCallbacks implements OnLoad { constructor( @inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil, @@ -169,5 +169,3 @@ class GameCallbacks implements OnLoad return this.httpResponse.noBody(this.gameController.getRaidTime(sessionID, request)); } } - -export {GameCallbacks}; diff --git a/project/src/callbacks/LauncherCallbacks.ts b/project/src/callbacks/LauncherCallbacks.ts index 13b439a4..f09ca19a 100644 --- a/project/src/callbacks/LauncherCallbacks.ts +++ b/project/src/callbacks/LauncherCallbacks.ts @@ -11,7 +11,7 @@ import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; import { Watermark } from "@spt-aki/utils/Watermark"; @injectable() -class LauncherCallbacks +export class LauncherCallbacks { constructor( @inject("HttpResponseUtil") protected httpResponse: HttpResponseUtil, @@ -99,5 +99,3 @@ class LauncherCallbacks return this.httpResponse.noBody(this.launcherController.getServerModsProfileUsed(sessionId)); } } - -export {LauncherCallbacks}; diff --git a/project/src/callbacks/ModCallbacks.ts b/project/src/callbacks/ModCallbacks.ts index b56b0851..9396cef9 100644 --- a/project/src/callbacks/ModCallbacks.ts +++ b/project/src/callbacks/ModCallbacks.ts @@ -11,7 +11,7 @@ import { HttpFileUtil } from "@spt-aki/utils/HttpFileUtil"; import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; @injectable() -class ModCallbacks implements OnLoad +export class ModCallbacks implements OnLoad { protected httpConfig: IHttpConfig; @@ -40,5 +40,3 @@ class ModCallbacks implements OnLoad return "aki-mods"; } } - -export {ModCallbacks}; diff --git a/project/src/controllers/TradeController.ts b/project/src/controllers/TradeController.ts index 49806a40..fade6b2c 100644 --- a/project/src/controllers/TradeController.ts +++ b/project/src/controllers/TradeController.ts @@ -29,7 +29,7 @@ import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil"; import { JsonUtil } from "@spt-aki/utils/JsonUtil"; @injectable() -class TradeController +export class TradeController { protected ragfairConfig: IRagfairConfig; protected traderConfig: ITraderConfig; @@ -283,6 +283,4 @@ class TradeController return null; } -} - -export {TradeController}; +} \ No newline at end of file diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index 25ac140a..6260d169 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -20,7 +20,7 @@ import { ObjectId } from "@spt-aki/utils/ObjectId"; import { ProbabilityObject, ProbabilityObjectArray, RandomUtil } from "@spt-aki/utils/RandomUtil"; @injectable() -class ItemHelper +export class ItemHelper { protected readonly defaultInvalidBaseTypes: string[] = [ BaseClasses.LOOT_CONTAINER, @@ -1159,5 +1159,3 @@ namespace ItemHelper height: number; } } - -export {ItemHelper};