diff --git a/src/types/CreatePost.ts b/src/types/CreatePost.ts index c4ccffe..b5c0ecf 100644 --- a/src/types/CreatePost.ts +++ b/src/types/CreatePost.ts @@ -12,4 +12,5 @@ export interface CreatePost { nsfw?: boolean; language_id?: LanguageId; custom_thumbnail?: string; + scheduled_time?: string; } diff --git a/src/types/LemmyErrorType.ts b/src/types/LemmyErrorType.ts index 9ae0e71..a5889d0 100644 --- a/src/types/LemmyErrorType.ts +++ b/src/types/LemmyErrorType.ts @@ -167,4 +167,5 @@ export type LemmyErrorType = | { error: "url_without_domain" } | { error: "inbox_timeout" } | { error: "unknown"; message: string } - | { error: "cant_delete_site" }; + | { error: "cant_delete_site" } + | { error: "post_schedule_time_must_be_in_future" }; diff --git a/src/types/Post.ts b/src/types/Post.ts index 753cd6b..138fdce 100644 --- a/src/types/Post.ts +++ b/src/types/Post.ts @@ -28,4 +28,5 @@ export interface Post { featured_local: boolean; url_content_type?: string; alt_text?: string; + scheduled_time?: string; }