Post
Post
Posts are a generic type. They are used for sending feedback to the creators of crowde as well as for question comments.
interface Post extends AbstractEntity {
userId: string
type: string
content: {
text: string
}
data?: any
closed: boolean
closedAt?: any
closedBy?: string
}
interface ReplyPost extends Post {
type: 'reply'
data: {
parentId: string
}
}
interface ClosedPost extends Post {
type: 'closed'
data: {
parentId: string
closed: boolean
}
}
interface FeedbackPost extends Post {
type: 'feedback'
}
interface CommentPost extends Post {
type: 'comment'
data: {
forkedFromOrigin: string
questionId: string
versionNumber: number
}
}