Merge pull request #14637 from aleung/shelljs

ShellJS: ExecOptions extends child_process.ExecOptions
This commit is contained in:
Zhengbo Li
2017-02-15 17:16:36 -08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for ShellJS v0.6.0
// Type definitions for ShellJS v0.7.6
// Project: http://shelljs.org
// Definitions by: Niklas Mollenhauer <https://github.com/nikeee>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -466,7 +466,7 @@ export interface ExecCallback {
(code: number, stdout: string, stderr: string): any;
}
export interface ExecOptions {
export interface ExecOptions extends child.ExecOptions {
silent?: boolean;
async?: boolean;
}
+1 -1
View File
@@ -97,7 +97,7 @@ var pid = asyncVersion3.pid;
shell.exec("node --version", { silent: true }, function (code, stdout, stderr) {
var version = stdout;
});
shell.exec("node --version", { silent: true, async: true }, function (code, stdout, stderr) {
shell.exec("node --version", { silent: true, async: true, cwd: '/usr/local/bin' }, function (code, stdout, stderr) {
var version = stdout;
});
shell.exec("node --version", function (code, stdout, stderr) {