1 | // Type definitions for exit 0.1
|
2 | // Project: https://github.com/cowboy/node-exit
|
3 | // Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | /// <reference types="node" />
|
7 |
|
8 | /**
|
9 | * A replacement for process.exit that ensures stdio are fully drained before exiting.
|
10 | */
|
11 | declare function exit(code: number, streams?: [NodeJS.WritableStream, NodeJS.WritableStream]): void;
|
12 |
|
13 | export = exit;
|