Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > IWaitForExitOptions

IWaitForExitOptions interface

The options for running a process to completion using Executable.waitForExitAsync().

Signature:

export interface IWaitForExitOptions 

Properties

Property

Modifiers

Type

Description

encoding?

BufferEncoding | 'buffer'

(Optional) The encoding of the output. If not provided, the output will not be collected.

throwOnNonZeroExitCode?

boolean

(Optional) Whether or not to throw when the process completes with a non-zero exit code. Defaults to false.

throwOnSignal?

boolean

(Optional) Whether or not to throw when the process is terminated by a signal. Defaults to false.