Skip to content

Packages  ›  trotsky  ›  StepTap  ›  clone

StepTap.clone() method

Clones the current step and returns a new instance with the same parameters.

Signature:

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

Parameters

Parameter

Type

Description

rest

unknown[]

Additional parameters to pass to the cloned step. This is useful for child class overriding the clone.

Returns:

this

A new StepActor instance.