ff-webpage/types/component/baseImage.ts

35 lines
660 B
TypeScript
Raw Normal View History

export default interface BaseImage {
2024-11-01 13:15:09 +00:00
id: number;
documentId: string;
name: string;
alternativeText: string | null;
caption: string | null;
width: number;
height: number;
formats: Record<string, ImageFormat> | null;
2024-11-01 13:15:09 +00:00
hash: string;
ext: string;
mime: string;
size: number;
url: string;
previewUrl: string | null;
provider: string;
provider_metadata: any;
createdAt: string;
updatedAt: string;
publishedAt: string;
}
export interface ImageFormat {
name: string;
hash: string;
ext: string;
mime: string;
path: string | null;
width: number;
height: number;
size: number;
sizeInBytes: number;
url: string;
}