Skip to content

Commit

Permalink
fix: make swap and fork options extend promisify option (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d authored and jedwards1211 committed Jul 9, 2019
1 parent a898091 commit 8fe2d9e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ interface PromisifyChildProcessOptions {
encoding?: string;
}

type PromisifySpawnOptions = SpawnOptions & PromisifyChildProcessOptions;

type PromisifyForkOptions = ForkOptions & PromisifyChildProcessOptions;

export function promisifyChildProcess(
child: ChildProcess,
options?: PromisifyChildProcessOptions
Expand All @@ -32,21 +36,21 @@ export function promisifyChildProcess(
export function spawn(
command: string,
args: Array<string>,
options?: SpawnOptions
options?: PromisifySpawnOptions
): ChildProcessPromise;
export function spawn(
command: string,
options?: SpawnOptions
options?: PromisifySpawnOptions
): ChildProcessPromise;

export function fork(
module: string,
args: Array<string>,
options?: ForkOptions
options?: PromisifyForkOptions
): ChildProcessPromise;
export function fork(
module: string,
options?: ForkOptions
options?: PromisifyForkOptions
): ChildProcessPromise;

export function exec(
Expand Down

0 comments on commit 8fe2d9e

Please sign in to comment.