lemmy/ui/src/interfaces.ts
Dessalines e570c70701 Adding login and Register
- Login and Register  mostly working.
- Starting to work on creating communities.
2019-03-22 18:42:57 -07:00

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
}