mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 01:45:49 +08:00
[execa] align to v0.7, add missing interfaces (#18251)
This commit is contained in:
@@ -54,6 +54,15 @@ execa.shell('echo unicorns')
|
||||
execa('echo', ['unicorns']).stdout.pipe(process.stdout);
|
||||
execa('echo', ['unicorns']).stderr.pipe(process.stderr);
|
||||
|
||||
execa('forever', {extendEnv: false}).pid;
|
||||
execa('forever', {argv0: 'hi'}).pid;
|
||||
execa('forever', {localDir: '~'}).pid;
|
||||
execa('forever', {reject: false}).pid;
|
||||
execa('forever', {cleanup: false}).pid;
|
||||
execa('forever', {stdin: 1}).pid;
|
||||
execa('forever', {stdout: 'ignore'}).pid;
|
||||
execa('forever', {stderr: undefined}).pid;
|
||||
|
||||
async () => {
|
||||
const { stdout } = await execa('noop', ['foo'], { stripEof: false });
|
||||
assert(stdout === 'foo\n');
|
||||
|
||||
Reference in New Issue
Block a user