diff --git a/src/NetscriptFunctions/StockMarket.ts b/src/NetscriptFunctions/StockMarket.ts index ad0fb3941..d7acb9545 100644 --- a/src/NetscriptFunctions/StockMarket.ts +++ b/src/NetscriptFunctions/StockMarket.ts @@ -13,7 +13,7 @@ import { getStockMarketTixApiCost, } from "../StockMarket/StockMarketCosts"; import { Stock } from "../StockMarket/Stock"; -import { TIX } from "../ScriptEditor/NetscriptDefinitions"; +import { StockOrder, TIX } from "../ScriptEditor/NetscriptDefinitions"; import { InternalAPI, NetscriptContext } from "src/Netscript/APIWrapper"; export function NetscriptStockMarket(player: IPlayer, workerScript: WorkerScript): InternalAPI { @@ -289,7 +289,7 @@ export function NetscriptStockMarket(player: IPlayer, workerScript: WorkerScript }; return cancelOrder(params, workerScript); }, - getOrders: (ctx: NetscriptContext) => (): any => { + getOrders: (ctx: NetscriptContext) => (): StockOrder => { checkTixApiAccess(ctx); if (player.bitNodeN !== 8) { if (player.sourceFileLvl(8) <= 2) { @@ -297,7 +297,7 @@ export function NetscriptStockMarket(player: IPlayer, workerScript: WorkerScript } } - const orders: any = {}; + const orders: StockOrder = {}; const stockMarketOrders = StockMarket["Orders"]; for (const symbol of Object.keys(stockMarketOrders)) {