From 6342ccbad5f353720d33c2875843b3a5c607570c Mon Sep 17 00:00:00 2001 From: Alex Aubuchon Date: Tue, 25 Jan 2022 18:28:47 -0500 Subject: [PATCH] Indicate that getRunningScript can return null --- src/ScriptEditor/NetscriptDefinitions.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 6021a88ef..9ea847ceb 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -5396,7 +5396,7 @@ export interface NS extends Singularity { * @param filename - Optional. Filename or PID of the script. * @param hostname - Optional. Name of host server the script is running on. * @param args - Arguments to identify the script - * @returns info about a running script + * @returns The info about the running script if found, and null otherwise. */ getRunningScript(filename?: FilenameOrPID, hostname?: string, ...args: (string | number)[]): RunningScript;