mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Merge pull request #2287 from daanflore/dev
Saw in vscode that some typedefenitions where not the same as how they work in the game
This commit is contained in:
commit
69ed320b93
3
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
3
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -5152,6 +5152,7 @@ export interface NS extends Singularity {
|
||||
*
|
||||
* @returns info about a running script
|
||||
*/
|
||||
getRunningScript(): RunningScript;
|
||||
getRunningScript(filename: string | number, hostname: string, ...args: (string | number)[]): RunningScript;
|
||||
|
||||
/**
|
||||
@ -5286,7 +5287,7 @@ export interface NS extends Singularity {
|
||||
* @param data - Data to write.
|
||||
* @param mode - Defines the write mode. Only valid when writing to text files.
|
||||
*/
|
||||
write(handle: string, data?: string[] | number, mode?: "w" | "a"): Promise<void>;
|
||||
write(handle: string, data?: string[] | number | string, mode?: "w" | "a"): Promise<void>;
|
||||
|
||||
/**
|
||||
* Attempt to write to a port.
|
||||
|
Loading…
Reference in New Issue
Block a user