add hoop before exposing

This commit is contained in:
omuretsu
2022-10-11 21:02:04 -04:00
parent 7d07f44b3e
commit 41b6f0b87b
3 changed files with 8 additions and 7 deletions
-7
View File
@@ -1,9 +1,2 @@
import { Terminal as TTerminal } from "./Terminal/Terminal";
import { ReactNode } from "react";
declare global {
interface Window {
tprintRaw: (node: ReactNode) => void;
}
}
export const Terminal = new TTerminal();
window["tprintRaw"] = Terminal.printRaw.bind(Terminal);