Skip to content
Myr

Change documentation of `.cancel()` to mention that it’s deprecated (#512)

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

authored by Leandro Facchinetti · committed by GitHub · parent 7a8f5cd · Browse files · 1 file+1 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

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:index.d.ts+1 added-1 removed
439 unmodified lines
440 */441 kill(signal?: string, options?: KillOptions): void;442443 /**444 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`.444 Similar to [`childProcess.kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal). This used to be preferred when cancelling the child process execution as the error is more descriptive and [`childProcessResult.isCanceled`](#iscanceled) is set to `true`. But now this is deprecated and you should either use `.kill()` or the `signal` option when creating the child process.445 */446 cancel(): void;447}448
133 unmodified lines