processExit.js 385 B

123456789101112131415161718
  1. // declare process
  2. // declare var process: {
  3. // stdin: any;
  4. // stdout(stdout: any, arg1: number, arg2: number): unknown;
  5. // env: {
  6. // [key: string]: string;
  7. // };
  8. // exit(code?: number): void;
  9. // };
  10. // export const processExit = (code) => {
  11. const processExit = (code) => {
  12. // endConnection(() => {
  13. process.exit(code);
  14. // });
  15. };
  16. exports.processExit = processExit;