Skip to content
Myr

Document the reasons why the returned promise might fail (#364)

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 c3526cd · Browse files · 2 files+17 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

2 files+17 added−0 removed

  • other:+17 added−0 removed

2 files+17 added−0 removed

modified:index.d.ts+10 added
266 unmodified lines
267 interface ExecaSyncReturnValue<StdoutErrorType = string>268 extends ExecaReturnBase<StdoutErrorType> {269 }270271 /**272 Result of a child process execution. On success this is a plain object. On failure this is also an `Error` instance.273274 The child process fails when:275 - its exit code is not `0`276 - it was killed with a signal277 - timing out278 - being canceled279 - there's not enough memory or there are already too many child processes280 */281 interface ExecaReturnValue<StdoutErrorType = string>282 extends ExecaSyncReturnValue<StdoutErrorType> {283 /**284 The output of the process with `stdout` and `stderr` interleaved.
214 unmodified lines
modified:readme.md+7 added
198 unmodified lines
199Type: `object`200201Result of a child process execution. On success this is a plain object. On failure this is also an `Error` instance.202203The child process [fails](#failed) when:204- its [exit code](#exitcode) is not `0`205- it was [killed](#killed) with a [signal](#signal)206- [timing out](#timedout)207- [being canceled](#iscanceled)208- there's not enough memory or there are already too many child processes209210#### command211212Type: `string`213
338 unmodified lines