Jamjar/src/types/PostType.ts
2025-01-27 21:40:12 -05:00

17 lines
356 B
TypeScript

import { CommentType } from "./CommentType";
import { TagType } from "./TagType";
import { UserType } from "./UserType";
export interface PostType {
id: number;
slug: string;
title: string;
sticky: boolean;
content: string;
author: UserType;
createdAt: Date;
comments: CommentType[];
tags: TagType[];
likes: [];
hasLiked: boolean;
}