Packages › trotsky › StepPosts
StepPosts class
Abstract class representing a list of posts to process.
Signature:
export declare class StepPosts<P = StepBuilder, C = null, O extends StepPostsOutput = StepPostsOutput> extends StepBuilderList<P, C, O>
Extends: StepBuilderList<P, C, O>
Constructors
Constructor | Modifiers | Description |
---|---|---|
Initializes the StepPost instance with the given agent, parent, and URI. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
StepPostsEntry<this>[] | Holds the list of steps to be executed for each post entry. | ||
Resolvable<StepPostsUris> | The URIs of the posts to retrieve, which can be resolved dynamically at runtime. |
Methods
Method | Modifiers | Description |
---|---|---|
Applies the step by resolving the actor parameter and fetching the actors' profiles. Sets the posts data as the output of this step. | ||
Clones the current step and returns a new instance with the same parameters. | ||
Appends a new post entry step to the current list and returns it. |