mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-17 12:50:33 +00:00
e1cb805cfc
- Adding create community
39 lines
584 B
TypeScript
39 lines
584 B
TypeScript
export enum UserOperation {
|
|
Login, Register, CreateCommunity
|
|
}
|
|
|
|
export interface User {
|
|
id: number;
|
|
username: string;
|
|
}
|
|
|
|
export interface Community {
|
|
id: number;
|
|
name: string;
|
|
published: Date;
|
|
updated?: Date;
|
|
}
|
|
|
|
export interface LoginForm {
|
|
username_or_email: string;
|
|
password: string;
|
|
}
|
|
|
|
export interface RegisterForm {
|
|
username: string;
|
|
email?: string;
|
|
password: string;
|
|
password_verify: string;
|
|
}
|
|
|
|
export interface CommunityForm {
|
|
name: string;
|
|
}
|
|
|
|
export interface PostForm {
|
|
name: string;
|
|
url: string;
|
|
attributed_to: string;
|
|
updated?: number
|
|
}
|