Merge pull request #2934 from phyzical/bugfix/1955

added check for NS interface with user defined guard
This commit is contained in:
hydroflame
2022-03-10 21:44:37 -05:00
committed by GitHub
3 changed files with 13 additions and 8 deletions

2
dist/bitburner.d.ts vendored
View File

@@ -3915,7 +3915,7 @@ export declare interface NS extends Singularity {
* @param data - Data to write.
* @returns True if the data is successfully written to the port, and false otherwise.
*/
tryWritePort(port: number, data: string[] | number): Promise<boolean>;
tryWritePort(port: number, data: string | number): Promise<boolean>;
/**
* Read content of a file.