work on making the netscript api tighter

This commit is contained in:
Olivier Gagnon
2021-11-03 20:19:52 -04:00
parent c5fb5155f3
commit 14150d3e33
270 changed files with 11011 additions and 1273 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ Attempt to write to a port.
<b>Signature:</b>
```typescript
tryWrite(port: number, data: string[] | number): boolean;
tryWrite(port: number, data: string[] | number): Promise<boolean>;
```
## Parameters
@@ -21,7 +21,7 @@ tryWrite(port: number, data: string[] | number): boolean;
<b>Returns:</b>
boolean
Promise&lt;boolean&gt;
True if the data is successfully written to the port, and false otherwise.