modularize playground (prep for persistent/modular file handling)
This commit is contained in:
13
playground/src/global.d.ts
vendored
13
playground/src/global.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user