mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 13:15:48 +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 { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../utils/JSONReviver";
|
||||||
import { formatTime } from "../utils/helpers/formatTime";
|
import { formatTime } from "../utils/helpers/formatTime";
|
||||||
|
import { ScriptArg } from "../Netscript/ScriptArg";
|
||||||
|
|
||||||
export class RunningScript {
|
export class RunningScript {
|
||||||
// Script arguments
|
// Script arguments
|
||||||
args: any[] = [];
|
args: ScriptArg[] = [];
|
||||||
|
|
||||||
// Map of [key: hostname] -> Hacking data. Used for offline progress calculations.
|
// Map of [key: hostname] -> Hacking data. Used for offline progress calculations.
|
||||||
// Hacking data format: [MoneyStolen, NumTimesHacked, NumTimesGrown, NumTimesWeaken]
|
// 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
|
// Script urls for the current running script for translating urls back to file names in errors
|
||||||
dependencies: ScriptUrl[] = [];
|
dependencies: ScriptUrl[] = [];
|
||||||
|
|
||||||
constructor(script: Script | null = null, args: any[] = []) {
|
constructor(script: Script | null = null, args: ScriptArg[] = []) {
|
||||||
if (script == null) {
|
if (script == null) {
|
||||||
return;
|
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 {
|
export interface RunningScript {
|
||||||
/** Arguments the script was called with */
|
/** Arguments the script was called with */
|
||||||
args: string[];
|
args: (string | number | boolean)[];
|
||||||
/** Filename of the script */
|
/** Filename of the script */
|
||||||
filename: string;
|
filename: string;
|
||||||
/**
|
/**
|
||||||
@ -321,7 +321,7 @@ export interface ProcessInfo {
|
|||||||
/** Number of threads script is running with */
|
/** Number of threads script is running with */
|
||||||
threads: number;
|
threads: number;
|
||||||
/** Script's arguments */
|
/** Script's arguments */
|
||||||
args: string[];
|
args: (string | number | boolean)[];
|
||||||
/** Process ID */
|
/** Process ID */
|
||||||
pid: number;
|
pid: number;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user