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:
hydroflame 2022-01-03 15:44:08 -05:00 committed by GitHub
commit 69ed320b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5152,6 +5152,7 @@ export interface NS extends Singularity {
* *
* @returns info about a running script * @returns info about a running script
*/ */
getRunningScript(): RunningScript;
getRunningScript(filename: string | number, hostname: string, ...args: (string | number)[]): 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 data - Data to write.
* @param mode - Defines the write mode. Only valid when writing to text files. * @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. * Attempt to write to a port.