mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-26 14:21:12 +00:00
Adding thumbnail sizes to post_view.
This commit is contained in:
parent
589f336a72
commit
f20136b0d5
5 changed files with 20 additions and 0 deletions
|
@ -111,6 +111,7 @@ export { GetUnreadCountResponse } from "./types/GetUnreadCountResponse";
|
|||
export { GetUnreadRegistrationApplicationCountResponse } from "./types/GetUnreadRegistrationApplicationCountResponse";
|
||||
export { HideCommunity } from "./types/HideCommunity";
|
||||
export { HidePost } from "./types/HidePost";
|
||||
export { ImageDetails } from "./types/ImageDetails";
|
||||
export { Instance } from "./types/Instance";
|
||||
export { InstanceBlockView } from "./types/InstanceBlockView";
|
||||
export { InstanceId } from "./types/InstanceId";
|
||||
|
@ -223,6 +224,7 @@ export { RegistrationApplication } from "./types/RegistrationApplication";
|
|||
export { RegistrationApplicationResponse } from "./types/RegistrationApplicationResponse";
|
||||
export { RegistrationApplicationView } from "./types/RegistrationApplicationView";
|
||||
export { RegistrationMode } from "./types/RegistrationMode";
|
||||
export { RemoteImage } from "./types/RemoteImage";
|
||||
export { RemoveComment } from "./types/RemoveComment";
|
||||
export { RemoveCommunity } from "./types/RemoveCommunity";
|
||||
export { RemovePost } from "./types/RemovePost";
|
||||
|
|
9
src/types/ImageDetails.ts
Normal file
9
src/types/ImageDetails.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export interface ImageDetails {
|
||||
link: string;
|
||||
width: number;
|
||||
height: number;
|
||||
content_type: string;
|
||||
published: string;
|
||||
}
|
|
@ -165,4 +165,5 @@ export type LemmyErrorType =
|
|||
| { error: "invalid_unix_time" }
|
||||
| { error: "invalid_bot_action" }
|
||||
| { error: "cant_block_local_instance" }
|
||||
| { error: "url_without_domain" }
|
||||
| { error: "unknown"; message: string };
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Community } from "./Community";
|
||||
import type { ImageDetails } from "./ImageDetails";
|
||||
import type { Person } from "./Person";
|
||||
import type { Post } from "./Post";
|
||||
import type { PostAggregates } from "./PostAggregates";
|
||||
|
@ -9,6 +10,7 @@ export interface PostView {
|
|||
post: Post;
|
||||
creator: Person;
|
||||
community: Community;
|
||||
image_details?: ImageDetails;
|
||||
creator_banned_from_community: boolean;
|
||||
banned_from_community: boolean;
|
||||
creator_is_moderator: boolean;
|
||||
|
|
6
src/types/RemoteImage.ts
Normal file
6
src/types/RemoteImage.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export interface RemoteImage {
|
||||
link: string;
|
||||
published: string;
|
||||
}
|
Loading…
Reference in a new issue