diff --git a/src/NetscriptFunctions/Gang.ts b/src/NetscriptFunctions/Gang.ts index 8eeb575a5..62e28e3de 100644 --- a/src/NetscriptFunctions/Gang.ts +++ b/src/NetscriptFunctions/Gang.ts @@ -17,6 +17,8 @@ import { GangMemberAscension, EquipmentStats, GangTaskStats, + GangTerritory, + GangOtherInfoObject, } from "../ScriptEditor/NetscriptDefinitions"; import { InternalAPI, NetscriptContext } from "../Netscript/APIWrapper"; @@ -91,7 +93,7 @@ export function NetscriptGang(player: IPlayer, workerScript: WorkerScript): Inte }, getOtherGangInformation: (ctx: NetscriptContext) => (): GangOtherInfo => { checkGangApiAccess(ctx); - const cpy: any = {}; + const cpy: Record = {}; for (const gang of Object.keys(AllGangs)) { cpy[gang] = Object.assign({}, AllGangs[gang]); } @@ -232,7 +234,7 @@ export function NetscriptGang(player: IPlayer, workerScript: WorkerScript): Inte }, getEquipmentCost: (ctx: NetscriptContext) => - (_equipName: any): number => { + (_equipName: unknown): number => { const equipName = ctx.helper.string("equipName", _equipName); checkGangApiAccess(ctx); const gang = player.gang; diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index feec02beb..866110ad3 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -825,13 +825,7 @@ export interface GangOtherInfoObject { * @public */ export interface GangOtherInfo { - "Slum Snakes": GangOtherInfoObject; - Tetrads: GangOtherInfoObject; - "The Syndicate": GangOtherInfoObject; - "The Dark Army": GangOtherInfoObject; - "Speakers for the Dead": GangOtherInfoObject; - NiteSec: GangOtherInfoObject; - "The Black Hand": GangOtherInfoObject; + [key: string]: GangOtherInfoObject; } /**