Skip to content

Packages  ›  trotsky  ›  StepBuilder  ›  append

StepBuilder.append() method

Appends a new step to the sequence.

Signature:

typescript
append<Type extends Step<this>>(type: new (agent: AtpAgent, parent: this, ...args: any[]) => Type, ...args: unknown[]): Type;

Parameters

Parameter

Type

Description

type

new (agent: AtpAgent, parent: this, ...args: any[]) => Type

The step class.

args

unknown[]

Arguments for the step.

Returns:

Type

The new step instance.