aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/@types')
-rw-r--r--viewer/src/@types/gallery.d.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts
index 3246894..04df1bb 100644
--- a/viewer/src/@types/gallery.d.ts
+++ b/viewer/src/@types/gallery.d.ts
@@ -37,6 +37,9 @@ declare namespace Gallery {
37 interface Picture extends Item { 37 interface Picture extends Item {
38 properties: PictureProperties, 38 properties: PictureProperties,
39 } 39 }
40 interface PlainText extends Item {
41 properties: PlainTextProperties,
42 }
40 interface Directory extends Item { 43 interface Directory extends Item {
41 properties: DirectoryProperties, 44 properties: DirectoryProperties,
42 } 45 }
@@ -47,7 +50,7 @@ declare namespace Gallery {
47 tags: RawTag[], 50 tags: RawTag[],
48 path: string, 51 path: string,
49 thumbnail?: Thumbnail 52 thumbnail?: Thumbnail
50 properties: OtherProperties | PictureProperties | DirectoryProperties, 53 properties: OtherProperties | PictureProperties | PlainTextProperties | DirectoryProperties,
51 } 54 }
52 interface Resolution { 55 interface Resolution {
53 width: number, 56 width: number,
@@ -62,6 +65,10 @@ declare namespace Gallery {
62 resource: string, 65 resource: string,
63 resolution: Resolution 66 resolution: Resolution
64 } 67 }
68 interface PlainTextProperties {
69 type: "plaintext",
70 resource: string,
71 }
65 interface DirectoryProperties { 72 interface DirectoryProperties {
66 type: "directory", 73 type: "directory",
67 items: Item[] 74 items: Item[]
@@ -71,5 +78,5 @@ declare namespace Gallery {
71 resolution: Resolution 78 resolution: Resolution
72 } 79 }
73 type RawTag = string; 80 type RawTag = string;
74 type ItemType = "other" | "picture" | "directory"; 81 type ItemType = "other" | "picture" | "plaintext" | "directory";
75} 82}