mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixed ShellJS.exec() definition in .d.ts.
This commit is contained in:
@@ -85,8 +85,34 @@ shell.ln("-sf", "file", "existing");
|
||||
|
||||
var testPath = shell.env["path"];
|
||||
|
||||
import child = require("child_process");
|
||||
|
||||
var version = shell.exec("node --version").output;
|
||||
|
||||
var version2 = <shell.ExecOutputReturnValue>shell.exec("node --version", { async: false });
|
||||
var output = version2.output;
|
||||
|
||||
var asyncVersion3 = <child.ChildProcess>shell.exec("node --version", { async: true });
|
||||
var pid = asyncVersion3.pid;
|
||||
|
||||
shell.exec("node --version", { silent: true }, function (code, output) {
|
||||
var version = output;
|
||||
});
|
||||
shell.exec("node --version", { silent: true, async: true }, function (code, output) {
|
||||
var version = output;
|
||||
});
|
||||
shell.exec("node --version", function (code, output) {
|
||||
var version = output;
|
||||
});
|
||||
shell.exec("node --version", function (code: number) {
|
||||
var num: number = code;
|
||||
});
|
||||
|
||||
var childProc = shell.exec("node --version", function (code: number) {
|
||||
var num: number = code;
|
||||
});
|
||||
var pid = childProc.pid;
|
||||
|
||||
shell.chmod(755, "/Users/brandon");
|
||||
shell.chmod("755", "/Users/brandon"); // same as above
|
||||
shell.chmod("u+x", "/Users/brandon");
|
||||
|
||||
Reference in New Issue
Block a user