yet another any

This commit is contained in:
Olivier Gagnon 2022-07-18 02:36:51 -04:00
parent 5f229c9c67
commit e9788536ed
2 changed files with 5 additions and 4 deletions

@ -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;
}

@ -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;
}