Skip to content

Packages  ›  trotsky  ›  StepActors

StepActors class

An abstract class that extends StepBuilderList to handle a list of actor profiles. It defines a collection of steps dealing with actor entries (StepActorsEntry), which can be appended via the each() method.

Signature:

typescript
export declare class StepActors<P = StepBuilder, C = null, O extends StepActorsOutput = StepActorsOutput> extends StepBuilderList<P, C, O>

Extends: StepBuilderList<P, C, O>

Constructors

Constructor

Modifiers

Description

(constructor)(agent, parent, param)

Initializes a new StepActors instance.

Methods

Method

Modifiers

Description

applyPagination()

Applies the step by resolving the actor parameter and fetching the actors' profiles. Sets the profile data as the output of this step.

clone(rest)

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

each(iterator)

Appends a new StepActorsEntry instance to the step list and returns the newly created entry.