Skip to content

Commit 0230d3a

Browse files
committed
added definitions for open
1 parent 172625b commit 0230d3a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

open/open-tests.ts

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

open/open.d.ts

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

0 commit comments

Comments
 (0)