DefinitelyTyped/types/exit/index.d.ts
Piotr Błażejewicz (Peter Blazejewicz) 2d3a320fd5
feat(exit): update definition with option parameter (#43099)
- `streams` optional parameter
- minor updates

https://github.com/cowboy/node-exit#exit-

Thanks!
2020-03-20 13:58:20 -04:00

14 lines
461 B
TypeScript

// Type definitions for exit 0.1
// Project: https://github.com/cowboy/node-exit
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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;