mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-01 00:28:05 +00:00
e570c70701
- Login and Register mostly working. - Starting to work on creating communities.
33 lines
503 B
TypeScript
33 lines
503 B
TypeScript
export enum UserOperation {
|
|
Login, Register, CreateCommunity
|
|
}
|
|
|
|
export interface User {
|
|
id: number
|
|
username: string;
|
|
}
|
|
|
|
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;
|
|
updated?: number
|
|
}
|
|
|
|
export interface PostForm {
|
|
name: string;
|
|
url: string;
|
|
attributed_to: string;
|
|
updated?: number
|
|
}
|