mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2025-01-09 19:53:21 +00:00
25 lines
433 B
TypeScript
25 lines
433 B
TypeScript
export const VERSION = "v4";
|
|
|
|
export interface UploadImage {
|
|
image: File | Buffer;
|
|
}
|
|
|
|
export interface UploadImageResponse {
|
|
/**
|
|
* Is "ok" if the upload was successful; is something else otherwise.
|
|
*/
|
|
msg: string;
|
|
files?: ImageFile[];
|
|
url?: string;
|
|
delete_url?: string;
|
|
}
|
|
|
|
export interface ImageFile {
|
|
file: string;
|
|
delete_token: string;
|
|
}
|
|
|
|
export interface DeleteImage {
|
|
token: string;
|
|
filename: string;
|
|
}
|