This repository has been archived on 2020-04-21. You can view files and clone it, but cannot push or open issues or pull requests.
lemmy/ui/src/interfaces.ts

39 lines
584 B
TypeScript
Raw Normal View History

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
}