mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
convert to ts
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import { Settings } from "./Settings/Settings";
|
||||
|
||||
interface IPort {}
|
||||
export interface IPort {
|
||||
write: (value: any) => any;
|
||||
tryWrite: (value: any) => boolean;
|
||||
read: () => any;
|
||||
peek: () => any;
|
||||
full: () => boolean;
|
||||
empty: () => boolean;
|
||||
clear: () => void;
|
||||
}
|
||||
|
||||
export function NetscriptPort(): IPort {
|
||||
const data: any[] = [];
|
||||
|
||||
Reference in New Issue
Block a user