Initial commit
This commit is contained in:
26
gui/app/src/interfaces/index.d.ts
vendored
Normal file
26
gui/app/src/interfaces/index.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user