npm install --save @types/exit
This package contains type definitions for exit (https://github.com/cowboy/node-exit).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/exit.
/// <reference types="node" />
/**
* A replacement for process.exit that ensures stdio are fully drained before exiting.
*/
declare function exit(code: number, streams?: [NodeJS.WritableStream, NodeJS.WritableStream]): void;
export = exit;
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/node
These definitions were written by Bart van der Schoor.