mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
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.
This commit is contained in:
parent
7107dd682c
commit
6e96428643
12
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
12
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -4233,22 +4233,22 @@ export interface NS extends Singularity {
|
||||
asleep(millis: number): Promise<void>;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
Loading…
Reference in New Issue
Block a user