mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-01 18:19:55 +00:00
b64f47cfe9
* Removing monads. Fixes #884 * Fixing post fetching. * Dont show not_logged_in error for navbar. * Adding the lemmy-js-client RC. * Fixing registration application mode
63 lines
891 B
TypeScript
63 lines
891 B
TypeScript
import { GetSiteResponse, LemmyHttp } from "lemmy-js-client";
|
|
|
|
/**
|
|
* This contains serialized data, it needs to be deserialized before use.
|
|
*/
|
|
export interface IsoData {
|
|
path: string;
|
|
routeData: any[];
|
|
site_res: GetSiteResponse;
|
|
}
|
|
|
|
export interface ILemmyConfig {
|
|
wsHost?: string;
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
isoData: IsoData;
|
|
lemmyConfig?: ILemmyConfig;
|
|
}
|
|
}
|
|
|
|
export interface InitialFetchRequest {
|
|
auth?: string;
|
|
client: LemmyHttp;
|
|
path: string;
|
|
}
|
|
|
|
export interface PostFormParams {
|
|
name?: string;
|
|
url?: string;
|
|
body?: string;
|
|
nameOrId?: string | number;
|
|
}
|
|
|
|
export enum CommentViewType {
|
|
Tree,
|
|
Flat,
|
|
}
|
|
|
|
export enum DataType {
|
|
Post,
|
|
Comment,
|
|
}
|
|
|
|
export enum BanType {
|
|
Community,
|
|
Site,
|
|
}
|
|
|
|
export enum PersonDetailsView {
|
|
Overview,
|
|
Comments,
|
|
Posts,
|
|
Saved,
|
|
}
|
|
|
|
export enum PurgeType {
|
|
Person,
|
|
Community,
|
|
Post,
|
|
Comment,
|
|
}
|