fix 2 any

This commit is contained in:
Olivier Gagnon 2022-07-19 19:08:22 -04:00
parent 70d5390e4d
commit 0848d2fdaa

@ -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<TIX> {
@ -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)) {