convert to ts

This commit is contained in:
Olivier Gagnon
2021-09-24 17:56:30 -04:00
parent da488e586b
commit 4abc1df840
7 changed files with 90 additions and 58 deletions
+9 -1
View File
@@ -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[] = [];