1 | # Installation
|
2 | > `npm install --save @types/exit`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for exit (https://github.com/cowboy/node-exit).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/exit.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/exit/index.d.ts)
|
10 | ````ts
|
11 | /// <reference types="node" />
|
12 |
|
13 | /**
|
14 | * A replacement for process.exit that ensures stdio are fully drained before exiting.
|
15 | */
|
16 | declare function exit(code: number, streams?: [NodeJS.WritableStream, NodeJS.WritableStream]): void;
|
17 |
|
18 | export = exit;
|
19 |
|
20 | ````
|
21 |
|
22 | ### Additional Details
|
23 | * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
|
24 | * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
25 |
|
26 | # Credits
|
27 | These definitions were written by [Bart van der Schoor](https://github.com/Bartvds).
|
28 |
|
\ | No newline at end of file |