interface Post {
    attachments?: Attachment[];
    author: User;
    comments?: Message[];
    content: string;
    files?: FileElement[];
    frontMatter: {
        excerpt?: string;
        isEmpty: boolean;
        matter: string;
        [key: string]: any;
    };
    reactions?: Reaction[];
    timestamp: string;
}

Properties

attachments?: Attachment[]
author: User
comments?: Message[]
content: string
files?: FileElement[]
frontMatter: {
    excerpt?: string;
    isEmpty: boolean;
    matter: string;
    [key: string]: any;
}

Type declaration

  • [key: string]: any
  • Optional excerpt?: string
  • isEmpty: boolean
  • matter: string
reactions?: Reaction[]
timestamp: string