export interface ICategory { id: number; title: string; } export type IStatus = "published" | "draft" | "rejected"; export interface IPost { id: number; title: string; content: string; status: IStatus; category: ICategory; } export type IType = "published" | "draft" | "rejected"; export interface IAccount { id: number; name: string; type: IType; } export type Nullable = { [P in keyof T]: T[P] | null; };