aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
authorZero~Informatique2020-02-02 05:01:17 +0100
committerZero~Informatique2020-02-02 05:01:17 +0100
commit0697693934c700f50bcc45ad58ab0b8f0370561c (patch)
treeb14967ddf4dfa3159e02c057e42aebeee6a8f947 /viewer/src/@types
parent7dde692101a7e36e0a431aeb864cbf3a0c0e96f8 (diff)
downloadldgallery-0697693934c700f50bcc45ad58ab0b8f0370561c.tar.gz
viewer: adaptation to the thumbnail's new structure
Diffstat (limited to 'viewer/src/@types')
-rw-r--r--viewer/src/@types/gallery.d.ts9
1 files changed, 8 insertions, 1 deletions
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 {
33 description: string, 33 description: string,
34 tags: RawTag[], 34 tags: RawTag[],
35 path: string, 35 path: string,
36 thumbnail?: string, 36 thumbnail?: Thumbnail
37 properties: OtherProperties | PictureProperties | DirectoryProperties, 37 properties: OtherProperties | PictureProperties | DirectoryProperties,
38 } 38 }
39 interface OtherProperties { 39 interface OtherProperties {
@@ -47,6 +47,13 @@ declare namespace Gallery {
47 type: "directory", 47 type: "directory",
48 items: Item[] 48 items: Item[]
49 } 49 }
50 interface Thumbnail {
51 resource: string,
52 resolution: {
53 width: number,
54 height: number,
55 }
56 }
50 type RawTag = string; 57 type RawTag = string;
51 type ItemType = "other" | "picture" | "directory"; 58 type ItemType = "other" | "picture" | "directory";
52} \ No newline at end of file 59} \ No newline at end of file