UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

31 lines (30 loc) 710 B
import { Entity } from "./Entity"; import { Mention } from "./Mention"; import { UserLean } from "./User"; export interface GifData { id: string; url: string; gifUrl: string; gifPreviewUrl: string; altText: string | undefined; aspectRatio: number; } export interface Comment { id: string; projectId: string; entityId: string; entity?: Entity; userId: string; user: UserLean; parentId: string | null; content: string | null; gif: GifData | null; mentions: Mention[]; upvotes: string[]; downvotes: string[]; repliesCount: number; createdAt: Date; updatedAt: Date; deletedAt: Date | null; parentDeletedAt: Date | null; }