You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/ui/src/interfaces.ts

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
}