From 729b180e85b0ac6a8041fc464d66447eaf71708a Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 25 Oct 2023 11:54:11 +0100 Subject: [PATCH] Add request object type --- project/src/routers/item_events/NoteItemEventRouter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/src/routers/item_events/NoteItemEventRouter.ts b/project/src/routers/item_events/NoteItemEventRouter.ts index 855be195..179ed61b 100644 --- a/project/src/routers/item_events/NoteItemEventRouter.ts +++ b/project/src/routers/item_events/NoteItemEventRouter.ts @@ -4,6 +4,7 @@ import { NoteCallbacks } from "@spt-aki/callbacks/NoteCallbacks"; import { HandledRoute, ItemEventRouterDefinition } from "@spt-aki/di/Router"; import { IPmcData } from "@spt-aki/models/eft/common/IPmcData"; import { IItemEventRouterResponse } from "@spt-aki/models/eft/itemEvent/IItemEventRouterResponse"; +import { INoteActionData } from "@spt-aki/models/eft/notes/INoteActionData"; @injectable() export class NoteItemEventRouter extends ItemEventRouterDefinition @@ -24,7 +25,7 @@ export class NoteItemEventRouter extends ItemEventRouterDefinition ]; } - public override handleItemEvent(url: string, pmcData: IPmcData, body: any, sessionID: string): IItemEventRouterResponse + public override handleItemEvent(url: string, pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse { switch (url) {