Skip to content
Myr

Add missing `result.all` TypeScript definition (#345)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by Sindre Sorhus · parent b46cba1 · Browse files · 3 files+13 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+13 added−0 removed

  • other:+13 added−0 removed

3 files+13 added−0 removed

modified:index.d.ts+7 added
319 unmodified lines
320 /**321 Similar to [`childProcess.kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal). This is preferred when cancelling the child process execution as the error is more descriptive and [`childProcessResult.isCanceled`](#iscanceled) is set to `true`.322 */323 cancel(): void;324325 /**326 Stream combining/interleaving [`stdout`](https://nodejs.org/api/child_process.html#child_process_subprocess_stdout) and [`stderr`](https://nodejs.org/api/child_process.html#child_process_subprocess_stderr).327328 This is `undefined` when both `stdout` and `stderr` options are set to [`'pipe'`, `'ipc'`, `Stream` or `integer`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).329 */330 all?: ReadableStream;331 }332333 type ExecaChildProcess<StdoutErrorType = string> = ChildProcess &334 ExecaChildPromise<StdoutErrorType> &
137 unmodified lines
modified:index.test-d.ts+2 added
modified:readme.md+4 added
162 unmodified lines
163Similar to [`childProcess.kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal). This is preferred when cancelling the child process execution as the error is more descriptive and [`childProcessResult.isCanceled`](#iscanceled) is set to `true`.164165#### all166167Type: `ReadableStream | undefined`168169Stream combining/interleaving [`stdout`](https://nodejs.org/api/child_process.html#child_process_subprocess_stdout) and [`stderr`](https://nodejs.org/api/child_process.html#child_process_subprocess_stderr).170171This is `undefined` when both [`stdout`](#stdout-1) and [`stderr`](#stderr-1) options are set to [`'pipe'`, `'ipc'`, `Stream` or `integer`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).172173### execa.sync(file, [arguments], [options])174175Execute a file synchronously.176
362 unmodified lines