Skip to content

Commit a349c78

Browse files
committed
added definitions for exit
1 parent 0230d3a commit a349c78

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

exit/exit-tests.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference path="exit.d.ts" />
2+
3+
import exit = require('exit');
4+
5+
exit(42);

exit/exit.d.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Type definitions for exit 0.1.2
2+
// Project: https://github.com/cowboy/node-exit
3+
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
4+
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5+
6+
declare module 'exit' {
7+
function exit(code: number): void;
8+
export = exit;
9+
}

0 commit comments

Comments
 (0)