UNPKG

@replyke/core

Version:

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

32 lines (31 loc) 732 B
import { Entity } from "./Entity"; import { Mention } from "./Mention"; import { User } 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; foreignId: string | null; entityId: string; entity?: Entity; userId: string; user: User; 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; }