mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-08 06:42:22 +08:00
Merge pull request #3176 from pocesar/node.js
child_process parameters are optional
This commit is contained in:
8
node/node.d.ts
vendored
8
node/node.d.ts
vendored
@@ -631,7 +631,11 @@ declare module "child_process" {
|
||||
killSignal?: string;
|
||||
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
|
||||
export function exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
|
||||
export function execFile(file: string, args: string[], options: {
|
||||
export function execFile(file: string,
|
||||
callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
|
||||
export function execFile(file: string, args?: string[],
|
||||
callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
|
||||
export function execFile(file: string, args?: string[], options?: {
|
||||
cwd?: string;
|
||||
stdio?: any;
|
||||
customFds?: any;
|
||||
@@ -640,7 +644,7 @@ declare module "child_process" {
|
||||
timeout?: number;
|
||||
maxBuffer?: string;
|
||||
killSignal?: string;
|
||||
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
|
||||
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
|
||||
export function fork(modulePath: string, args?: string[], options?: {
|
||||
cwd?: string;
|
||||
env?: any;
|
||||
|
||||
Reference in New Issue
Block a user