npm.io
0.1.33 • Published 2 years ago

@types/exit

Licence
MIT
Version
0.1.33
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/// <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 2205 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Bart van der Schoor.