modularize playground (prep for persistent/modular file handling)

This commit is contained in:
2024-12-07 16:58:10 -08:00
parent 421f5ea208
commit ba70845c09
11 changed files with 673 additions and 193 deletions

View File

@@ -3,15 +3,8 @@ export {};
declare global {
// typescript doesn't know worker.ts is a worker
function importScripts(...scripts: string[]): void;
interface Process {
platform: string;
stdout: {
write(s: string): void;
};
argv: string[];
exit(_: number): void;
}
let files: Record<string, string>;
let process: Process;
// let files: Record<string, string>;
// let process: Process;
let newtMain: () => unknown;
}