Skip to content

Packages  ›  trotsky  ›  Step  ›  when

Step.when() method

Adds a StepWhen step.

Signature:

typescript
when(predicate: Resolvable<StepWhenPredicate>): this;

Parameters

Parameter

Type

Description

predicate

Resolvable<StepWhenPredicate>

The predicate function.

Returns:

this

The current Step instance.