@likeminds.community/feed-js-beta
Version:
LikeMinds Javascript SDK for chat APIs
31 lines (30 loc) • 585 B
TypeScript
interface Attachment {
file_type: number;
file_url: string;
file_format?: string;
file_size?: string;
}
interface MenuItem {
title: string;
}
interface Post {
_id: string;
attachments: Attachment[];
comments_count: number;
community_id: number;
created_at: number;
is_pinned: boolean;
is_saved: boolean;
likes_count: number;
menu_items: MenuItem[];
text: string;
updated_at: number;
user_id: string;
}
export declare type FeedResponse = {
success: boolean;
data: {
posts: Post[];
};
};
export {};