Skip to content

Packages  ›  trotsky  ›  StepBuilder  ›  clone

StepBuilder.clone() method

Clones the current instance, including all steps and configuration.

Signature:

typescript
clone(...rest: unknown[]): this;

Parameters

Parameter

Type

Description

rest

unknown[]

Additional arguments to pass to the constructor.

Returns:

this

A new instance of the current class.