mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Added Missing third ExecCallback param (stderr) for shelljs (#9417)
* Added Missing third ExecCallback param (stderr) for shelljs * Made third ExecCallback parameter optional
This commit is contained in:
committed by
Masahiro Wakame
parent
7ad4e09016
commit
ae98aa7dd3
2
shelljs/shelljs.d.ts
vendored
2
shelljs/shelljs.d.ts
vendored
@@ -465,7 +465,7 @@ declare module "shelljs"
|
||||
export function exec(command: string, callback: ExecCallback): child.ChildProcess;
|
||||
|
||||
export interface ExecCallback {
|
||||
(code: number, output: string): any;
|
||||
(code: number, output: string, error?: string): any;
|
||||
}
|
||||
|
||||
export interface ExecOptions {
|
||||
|
||||
Reference in New Issue
Block a user