mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 07:02:26 +01:00
rm any
This commit is contained in:
parent
4bee746576
commit
1d4d86719e
@ -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<string, GangOtherInfoObject> = {};
|
||||
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;
|
||||
|
8
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
8
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user