added definitions for exit

This commit is contained in:
Bart van der Schoor
2014-04-01 00:36:35 +02:00
parent 0230d3aa63
commit a349c7811a
2 changed files with 14 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
/// <reference path="exit.d.ts" />
import exit = require('exit');
exit(42);
+9
View File
@@ -0,0 +1,9 @@
// Type definitions for exit 0.1.2
// Project: https://github.com/cowboy/node-exit
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module 'exit' {
function exit(code: number): void;
export = exit;
}