mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
yet another any
This commit is contained in:
parent
5f229c9c67
commit
e9788536ed
@ -10,10 +10,11 @@ import { Terminal } from "../Terminal";
|
||||
|
||||
import { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../utils/JSONReviver";
|
||||
import { formatTime } from "../utils/helpers/formatTime";
|
||||
import { ScriptArg } from "../Netscript/ScriptArg";
|
||||
|
||||
export class RunningScript {
|
||||
// Script arguments
|
||||
args: any[] = [];
|
||||
args: ScriptArg[] = [];
|
||||
|
||||
// Map of [key: hostname] -> Hacking data. Used for offline progress calculations.
|
||||
// Hacking data format: [MoneyStolen, NumTimesHacked, NumTimesGrown, NumTimesWeaken]
|
||||
@ -62,7 +63,7 @@ export class RunningScript {
|
||||
// Script urls for the current running script for translating urls back to file names in errors
|
||||
dependencies: ScriptUrl[] = [];
|
||||
|
||||
constructor(script: Script | null = null, args: any[] = []) {
|
||||
constructor(script: Script | null = null, args: ScriptArg[] = []) {
|
||||
if (script == null) {
|
||||
return;
|
||||
}
|
||||
|
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -85,7 +85,7 @@ export interface Multipliers {
|
||||
*/
|
||||
export interface RunningScript {
|
||||
/** Arguments the script was called with */
|
||||
args: string[];
|
||||
args: (string | number | boolean)[];
|
||||
/** Filename of the script */
|
||||
filename: string;
|
||||
/**
|
||||
@ -321,7 +321,7 @@ export interface ProcessInfo {
|
||||
/** Number of threads script is running with */
|
||||
threads: number;
|
||||
/** Script's arguments */
|
||||
args: string[];
|
||||
args: (string | number | boolean)[];
|
||||
/** Process ID */
|
||||
pid: number;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user