mobilizon.chapril.org-mobil.../js/src/types/media.model.ts
Thomas Citharel ee20e03cc2
Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-11 16:46:31 +02:00

24 lines
363 B
TypeScript

export interface IMedia {
id: string;
url: string;
name: string;
alt: string;
metadata: IMediaMetadata;
}
export interface IMediaUpload {
file: File;
name: string;
alt: string | null;
}
export interface IMediaUploadWrapper {
media: IMediaUpload;
}
export interface IMediaMetadata {
width?: number;
height?: number;
blurhash?: string;
}