Skip to content
Myr

Fix type of `forceKillAfterDelay` option (#1116)

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

authored by ehmicky · committed by GitHub · parent 97f0e01 · Browse files · 2 files+5 added−1 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+5 added−1 removed

  • other:+5 added−1 removed

2 files+5 added−1 removed

modified:test-d/arguments/options.test-d.ts+4 added
148 unmodified lines
149expectError(execaSync('unicorns', {killSignal: 'SIGRT1'}));150151await execa('unicorns', {forceKillAfterDelay: false});152expectError(execaSync('unicorns', {forceKillAfterDelay: false}));153await execa('unicorns', {forceKillAfterDelay: true});154expectError(execaSync('unicorns', {forceKillAfterDelay: true}));155await execa('unicorns', {forceKillAfterDelay: false as boolean});156expectError(execaSync('unicorns', {forceKillAfterDelay: false as boolean}));157await execa('unicorns', {forceKillAfterDelay: 42});158expectError(execaSync('unicorns', {forceKillAfterDelay: 42}));159expectError(await execa('unicorns', {forceKillAfterDelay: 'true'}));160expectError(execaSync('unicorns', {forceKillAfterDelay: 'true'}));
70 unmodified lines
modified:types/arguments/options.d.ts+1 added-1 removed
295 unmodified lines
296 When this happens, `error.isForcefullyTerminated` becomes `true`.297298 @default 5000299 */300 readonly forceKillAfterDelay?: Unless<IsSync, number | false>;300 readonly forceKillAfterDelay?: Unless<IsSync, number | boolean>;301302 /**303 Default [signal](https://en.wikipedia.org/wiki/Signal_(IPC)) used to terminate the subprocess.304
94 unmodified lines