diff --git a/open/open-tests.ts b/open/open-tests.ts new file mode 100644 index 000000000..a529fa9cf --- /dev/null +++ b/open/open-tests.ts @@ -0,0 +1,6 @@ +/// + +import open = require('open'); + +open('foo'); +open('foo', 'bar'); diff --git a/open/open.d.ts b/open/open.d.ts new file mode 100644 index 000000000..c32e80bfe --- /dev/null +++ b/open/open.d.ts @@ -0,0 +1,9 @@ +// Type definitions for open 0.0.3 +// Project: https://github.com/jjrdn/node-open +// Definitions by: Bart van der Schoor +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module 'open' { + function open(target: string, app?: string): void; + export = open; +}