Skip to content

Commit

Permalink
Update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
LJNeon authored Jan 14, 2024
1 parent a9dd6c2 commit 6ce2fdf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ScriptEditor/NetscriptDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6644,6 +6644,17 @@ export interface NS {
*/
tryWritePort(portNumber: number, data: string | number): boolean;

/**
* Listen for a port write.
* @remarks
* RAM cost: 0 GB
*
* Sleeps until the port is written to.
*
* @param port - Port to listen for a write on. Must be a positive integer.
*/
nextPortWrite(port: number): Promise<void>;

/**
* Read content of a file.
* @remarks
Expand Down

0 comments on commit 6ce2fdf

Please sign in to comment.