Skip to content

Packages  ›  trotsky  ›  StepList

StepList class

Represents a step for retrieving a list by its URI.

Signature:

typescript
export declare class StepList<P = StepBuilder, C = null, O extends StepListOutput = StepListOutput> extends ListMixins<P, C, O>

Extends: ListMixins<P, C, O>

Constructors

Constructor

Modifiers

Description

(constructor)(agent, parent, uri)

Initializes the StepList instance with the given agent, parent, and URI.

Methods

Method

Modifiers

Description

apply()

Applies the step logic to retrieve the list and sets the output to the retrieved list's data. If no lists are found, the output is set to null.

clone(rest)

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

queryParams()

Resolves the query parameters for retrieving the list, including its URI.