NETSCRIPT: More ns Proxy changes (#297)

This commit is contained in:
David Walker
2023-01-05 17:41:24 -08:00
committed by GitHub
parent 3281b785ce
commit 4eef9eec03
11 changed files with 148 additions and 143 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import { InternalAPI } from "../Netscript/APIWrapper";
import { helpers } from "../Netscript/NetscriptHelpers";
import { Terminal } from "../Terminal";
export interface INetscriptExtra {
export type INetscriptExtra = {
heart: {
break(): number;
};
@@ -18,7 +18,7 @@ export interface INetscriptExtra {
rainbow(guess: string): void;
iKnowWhatImDoing(): void;
printRaw(value: React.ReactNode): void;
}
};
export function NetscriptExtra(): InternalAPI<INetscriptExtra> {
return {