Files
astuto/app/javascript/interfaces/IPost.ts

29 lines
706 B
TypeScript
Raw Normal View History

2024-07-12 20:38:46 +02:00
// Approval status
export const POST_APPROVAL_STATUS_APPROVED = 'approved';
export const POST_APPROVAL_STATUS_PENDING = 'pending';
export const POST_APPROVAL_STATUS_REJECTED = 'rejected';
export type PostApprovalStatus =
typeof POST_APPROVAL_STATUS_APPROVED |
typeof POST_APPROVAL_STATUS_PENDING |
typeof POST_APPROVAL_STATUS_REJECTED;
2019-08-26 14:29:56 +02:00
interface IPost {
id: number;
title: string;
slug?: string;
2019-08-26 14:29:56 +02:00
description?: string;
2024-07-12 20:38:46 +02:00
approvalStatus: PostApprovalStatus;
boardId: number;
postStatusId?: number;
likeCount: number;
2019-09-27 16:57:23 +02:00
liked: number;
commentsCount: number;
2019-09-27 16:57:23 +02:00
hotness: number;
userId: number;
userEmail: string;
userFullName: string;
createdAt: string;
2019-08-26 14:29:56 +02:00
}
export default IPost;