Add alt text (#242)

* Adding post alt text.

* 0.19.4-alpha.5

* 0.19.4-alpha.6
This commit is contained in:
Dessalines 2024-02-29 23:03:37 -05:00 committed by GitHub
parent 902ddf6ac8
commit e24ef22b5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{
"name": "lemmy-js-client",
"description": "A javascript / typescript client for Lemmy",
"version": "0.19.4-alpha.4",
"version": "0.19.4-alpha.6",
"author": "Dessalines <tyhou13@gmx.com>",
"license": "AGPL-3.0",
"main": "./dist/index.js",

View file

@ -7,6 +7,7 @@ export interface CreatePost {
community_id: CommunityId;
url?: string;
body?: string;
alt_text?: string;
honeypot?: string;
nsfw?: boolean;
language_id?: LanguageId;

View file

@ -7,6 +7,7 @@ export interface EditPost {
name?: string;
url?: string;
body?: string;
alt_text?: string;
nsfw?: boolean;
language_id?: LanguageId;
custom_thumbnail?: string;

View file

@ -91,6 +91,7 @@ export type LemmyErrorType =
| { error: "invalid_post_title" }
| { error: "invalid_body_field" }
| { error: "bio_length_overflow" }
| { error: "alt_text_length_overflow" }
| { error: "missing_totp_token" }
| { error: "missing_totp_secret" }
| { error: "incorrect_totp_token" }

View file

@ -27,4 +27,5 @@ export interface Post {
featured_community: boolean;
featured_local: boolean;
url_content_type?: string;
alt_text?: string;
}