Updating types from main.

This commit is contained in:
Dessalines 2024-09-24 15:11:42 -04:00
parent 5789a9a685
commit 79d233c442
6 changed files with 8 additions and 12 deletions

View file

@ -159,7 +159,7 @@ export type LemmyErrorType =
| { error: "couldnt_delete_oauth_provider" } | { error: "couldnt_delete_oauth_provider" }
| { error: "unknown"; message: string } | { error: "unknown"; message: string }
| { error: "cant_delete_site" } | { error: "cant_delete_site" }
| { error: "url_length_overflow" }
| { error: "post_schedule_time_must_be_in_future" } | { error: "post_schedule_time_must_be_in_future" }
| { error: "too_many_scheduled_posts" } | { error: "too_many_scheduled_posts" }
| { error: "url_length_overflow" }
| { error: "not_found" }; | { error: "not_found" };

View file

@ -23,7 +23,6 @@ export interface LocalUser {
accepted_application: boolean; accepted_application: boolean;
open_links_in_new_tab: boolean; open_links_in_new_tab: boolean;
blur_nsfw: boolean; blur_nsfw: boolean;
auto_expand: boolean;
infinite_scroll_enabled: boolean; infinite_scroll_enabled: boolean;
admin: boolean; admin: boolean;
post_listing_mode: PostListingMode; post_listing_mode: PostListingMode;

View file

@ -28,5 +28,5 @@ export interface Post {
featured_local: boolean; featured_local: boolean;
url_content_type?: string; url_content_type?: string;
alt_text?: string; alt_text?: string;
scheduled_publish_time?: number; scheduled_publish_time?: string;
} }

View file

@ -8,7 +8,6 @@ import type { PostSortType } from "./PostSortType";
export interface SaveUserSettings { export interface SaveUserSettings {
show_nsfw?: boolean; show_nsfw?: boolean;
blur_nsfw?: boolean; blur_nsfw?: boolean;
auto_expand?: boolean;
theme?: string; theme?: string;
default_listing_type?: ListingType; default_listing_type?: ListingType;
post_listing_mode?: PostListingMode; post_listing_mode?: PostListingMode;

View file

@ -15,5 +15,9 @@ export interface Search {
listing_type?: ListingType; listing_type?: ListingType;
page?: number; page?: number;
limit?: number; limit?: number;
post_title_only?: boolean; title_only?: boolean;
post_url_only?: boolean;
saved_only?: boolean;
liked_only?: boolean;
disliked_only?: boolean;
} }

View file

@ -1,9 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type SearchType = export type SearchType = "All" | "Comments" | "Posts" | "Communities" | "Users";
| "All"
| "Comments"
| "Posts"
| "Communities"
| "Users"
| "Url";