@types/exit
Version:
TypeScript definitions for exit
28 lines (20 loc) • 874 B
Markdown
# Installation
> `npm install --save @types/exit`
# Summary
This package contains type definitions for exit (https://github.com/cowboy/node-exit).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/exit.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/exit/index.d.ts)
````ts
/// <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;
````
### Additional Details
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Bart van der Schoor](https://github.com/Bartvds).