@likeminds.community/feed-js
Version:
LikeMinds Javascript SDK for chat APIs
32 lines (31 loc) • 714 B
TypeScript
import { Attachment } from "./attachment";
import { Reply } from "./replies";
export interface Post {
id: string;
attachments: Attachment[];
commentsCount: number;
createdAt: number;
heading: string;
isEdited: boolean;
isLiked: boolean;
isPinned: boolean;
isRepost: boolean;
isRepostedByUser: boolean;
isSaved: boolean;
likesCount: number;
menuItems: MenuItem[];
repostCount: number;
tempId: null | string;
text: string;
topics: string[];
updatedAt: number;
uuid: string;
replies?: Reply[];
commentIds?: string[];
isAnonymous: boolean;
isHidden: boolean;
}
export interface MenuItem {
id: number;
title: string;
}