Skip to content

Packages  ›  trotsky  ›  PostMixins

PostMixins class

A mixin class providing reusable post-related methods to extend step functionality. These methods append specific post-related steps to the current chain.

Signature:

typescript
export declare abstract class PostMixins<P, C, O> extends Step<P, C, O>

Extends: Step<P, C, O>

Methods

Method

Modifiers

Description

author()

Appends a step to retrieve the author of the current post.

like()

Appends a step to like the current post.

reply(record)

Appends a step to reply to the current post.

repost()

Appends a step to repost the current post.