Skip to content

Commit

Permalink
Fixed return type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Chomp committed Dec 28, 2024
1 parent 1f01bea commit 987137c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions project/src/routers/static/CustomizationStaticRouter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { CustomizationCallbacks } from "@spt/callbacks/CustomizationCallbacks";
import { RouteAction, StaticRouter } from "@spt/di/Router";
import { ICustomisationStorage } from "@spt/models/eft/common/tables/ICustomisationStorage";
import { IGetSuitsResponse } from "@spt/models/eft/customization/IGetSuitsResponse";
import { IHideoutCustomisation } from "@spt/models/eft/hideout/IHideoutCustomisation";
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
import { inject, injectable } from "tsyringe";

Expand All @@ -26,7 +28,7 @@ export class CustomizationStaticRouter extends StaticRouter {
info: any,
sessionID: string,
output: string,
): Promise<IGetBodyResponseData<IGetSuitsResponse>> => {
): Promise<IGetBodyResponseData<IHideoutCustomisation>> => {
return this.customizationCallbacks.getHideoutCustomisation(url, info, sessionID);
},
),
Expand All @@ -37,7 +39,7 @@ export class CustomizationStaticRouter extends StaticRouter {
info: any,
sessionID: string,
output: string,
): Promise<IGetBodyResponseData<IGetSuitsResponse>> => {
): Promise<IGetBodyResponseData<ICustomisationStorage[]>> => {
return this.customizationCallbacks.getStorage(url, info, sessionID);
},
),
Expand Down
4 changes: 2 additions & 2 deletions project/src/routers/static/PrestigeStaticRouter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PrestigeCallbacks } from "@project/src/callbacks/PrestigeCallbacks";
import type { IGetBodyResponseData } from "@project/src/models/eft/httpResponse/IGetBodyResponseData";
import type { PrestigeCallbacks } from "@spt/callbacks/PrestigeCallbacks";
import { RouteAction, StaticRouter } from "@spt/di/Router";
import type { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
import { inject, injectable } from "tsyringe";

@injectable()
Expand Down

0 comments on commit 987137c

Please sign in to comment.