mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
feat(exit): update definition with option parameter (#43099)
- `streams` optional parameter - minor updates https://github.com/cowboy/node-exit#exit- Thanks!
This commit is contained in:
parent
a99eed1745
commit
2d3a320fd5
@@ -1,4 +1,4 @@
|
||||
|
||||
import exit = require('exit');
|
||||
|
||||
exit(42);
|
||||
exit(42, [process.stdout, process.stderr]);
|
||||
|
||||
Vendored
+7
-2
@@ -1,8 +1,13 @@
|
||||
// Type definitions for exit 0.1.2
|
||||
// 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;
|
||||
|
||||
declare function exit(code: number): void;
|
||||
export = exit;
|
||||
|
||||
+1
-11
@@ -1,11 +1 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"callable-types": false,
|
||||
"dt-header": false,
|
||||
"no-consecutive-blank-lines": false,
|
||||
"no-redundant-jsdoc": false,
|
||||
"prefer-method-signature": false,
|
||||
"trim-file": false
|
||||
}
|
||||
}
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
|
||||
Reference in New Issue
Block a user