scroll/src/deno/mod.ts

17 lines
324 B
JavaScript
Raw Normal View History

/**
* The main entrypoint when using Deno as the runtime
*/
import { IRuntime } from '../common/types.ts';
2023-11-01 15:05:31 -04:00
export * from './terminal_io.ts';
export const onExit = (cb: () => void): void => {
globalThis.addEventListener('onbeforeunload', cb);
};
const DenoRuntime: IRuntime = {
onExit,
};
2023-11-06 18:49:29 -05:00
export default DenoRuntime;