UNPKG

502 BTypeScriptView Raw
1// Type definitions for opener 1.4
2// Project: https://github.com/domenic/opener
3// Definitions by: Rahul Ravikumar <https://github.com/tikurahul>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6/// <reference types='node' />
7
8import { ChildProcess } from 'child_process';
9
10type Callback = (error: Error, stdout: string, stderr: string) => void;
11declare function opener(
12 args: string | string[], options?: {}, callback?: Callback): ChildProcess;
13
14export = opener;