Skip to main content
Explore this module further in the Mover Registry: @sage/shared

Structs

Likes

All of the relationships that exist between Users and the content they have liked.

Constants

Value used to store whether content has been liked or not.
Error code used when attempting to like content that has already been liked.

Functions

add

Like the content.

assert_has_not_liked

Aborts with EAlreadyLiked if the content has already been liked.

create

Creates a new instance of Likes.

get_length

Gets the number of times the content has been liked.

has_liked

Returns true or false based on whether the content has been liked.