Skip to content

Packages  ›  trotsky  ›  Trotsky  ›  when

Trotsky.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 Trotsky instance.