Skip to content

Commit

Permalink
added definitions for exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartvds committed Mar 31, 2014
1 parent 0230d3a commit a349c78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exit/exit-tests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference path="exit.d.ts" />

import exit = require('exit');

exit(42);
9 changes: 9 additions & 0 deletions exit/exit.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit a349c78

Please sign in to comment.