mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-20 07:42:46 +00:00
- `streams` optional parameter - minor updates https://github.com/cowboy/node-exit#exit- Thanks!
14 lines
461 B
TypeScript
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;
|