mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #14637 from aleung/shelljs
ShellJS: ExecOptions extends child_process.ExecOptions
This commit is contained in:
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user