Skip to content

API Reference / @gtkx/testing / WaitForOptions

Type Alias: WaitForOptions

WaitForOptions = object

Defined in: types.d.ts:20

Options controlling how asynchronous queries and waits poll for a condition.

Properties

interval?

optional interval?: number

Defined in: types.d.ts:24

Delay in milliseconds between retries.


onTimeout?

optional onTimeout?: (error) => Error

Defined in: types.d.ts:26

Transforms the error thrown when the timeout elapses.

Parameters

error

Error

Returns

Error


stackTraceError?

optional stackTraceError?: Error

Defined in: types.d.ts:28

Error whose stack trace attributes the timeout failure to the calling code.


timeout?

optional timeout?: number

Defined in: types.d.ts:22

Maximum time in milliseconds to keep retrying before failing.

Released under the MPL-2.0 License.