From 6e96428643fe4185eca33d8e3fecc651eb4eb627 Mon Sep 17 00:00:00 2001 From: tigercat2000 Date: Thu, 6 Jan 2022 04:04:00 -0800 Subject: [PATCH] Update print and tprint signatures to match code In https://github.com/danielyxie/bitburner/pull/1380, print() and tprint() were both changed to allow for variadic arguments, but this wasn't documented in NetscriptDefinitions.d.ts. --- src/ScriptEditor/NetscriptDefinitions.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index ae87d5ef7..f076f708b 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -4233,22 +4233,22 @@ export interface NS extends Singularity { asleep(millis: number): Promise; /** - * Prints a value or a variable to the script’s logs. + * Prints one or move values or variables to the script’s logs. * @remarks * RAM cost: 0 GB * - * @param msg - Value to be printed. + * @param args - Value(s) to be printed. */ - print(msg: any): void; + print(...args: any[]): void; /** - * Prints a value or a variable to the Terminal. + * Prints one or more values or variables to the Terminal. * @remarks * RAM cost: 0 GB * - * @param msg - Value to be printed. + * @param args - Value(s) to be printed. */ - tprint(msg: any): void; + tprint(...args: any[]): void; /** * Prints a raw value or a variable to the Terminal.