aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types/gallery/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/@types/gallery/index.d.ts')
-rw-r--r--viewer/src/@types/gallery/index.d.ts22
1 files changed, 8 insertions, 14 deletions
diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts
index 310c865..97cc207 100644
--- a/viewer/src/@types/gallery/index.d.ts
+++ b/viewer/src/@types/gallery/index.d.ts
@@ -1,28 +1,22 @@
1declare namespace Gallery { 1declare namespace Gallery {
2 interface Image extends Item { 2 interface Picture extends Item {
3 properties: ImageProperties, 3 properties: PictureProperties,
4 } 4 }
5 interface Directory extends Item { 5 interface Directory extends Item {
6 properties: DirectoryProperties, 6 properties: DirectoryProperties,
7 } 7 }
8 interface Item { 8 interface Item {
9 title: string, 9 title: string,
10 date: string, 10 datetime: string,
11 description: string, 11 description: string,
12 tags: RawTag[], 12 tags: RawTag[],
13 path: string, 13 path: string,
14 thumbnail: { 14 thumbnail?: string,
15 path: string, 15 properties: PictureProperties | DirectoryProperties,
16 },
17 properties: ImageProperties | DirectoryProperties,
18 } 16 }
19 interface ImageProperties { 17 interface PictureProperties {
20 type: "image", 18 type: "picture",
21 filesize: number, 19 resource: string,
22 resolution: {
23 width: number,
24 height: number,
25 }
26 } 20 }
27 interface DirectoryProperties { 21 interface DirectoryProperties {
28 type: "directory", 22 type: "directory",