mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
child_process parameters are optional
This commit is contained in:
1 parent
7c194584f3
commit
f750d0eb0a
1 file changed
+6
-2
Vendored
+6
-2
@@ -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