From 0697693934c700f50bcc45ad58ab0b8f0370561c Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sun, 2 Feb 2020 05:01:17 +0100 Subject: viewer: adaptation to the thumbnail's new structure --- viewer/src/@types/gallery.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index b112b6d..1987416 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -33,7 +33,7 @@ declare namespace Gallery { description: string, tags: RawTag[], path: string, - thumbnail?: string, + thumbnail?: Thumbnail properties: OtherProperties | PictureProperties | DirectoryProperties, } interface OtherProperties { @@ -47,6 +47,13 @@ declare namespace Gallery { type: "directory", items: Item[] } + interface Thumbnail { + resource: string, + resolution: { + width: number, + height: number, + } + } type RawTag = string; type ItemType = "other" | "picture" | "directory"; } \ No newline at end of file -- cgit v1.2.3