Files
budget-forecast/gui/app/src/interfaces/index.d.ts
2025-01-16 00:24:42 +01:00

27 lines
437 B
TypeScript

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<T> = {
[P in keyof T]: T[P] | null;
};