aboutsummaryrefslogtreecommitdiff
path: root/viewer
diff options
context:
space:
mode:
Diffstat (limited to 'viewer')
-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 04df1bb..7345ef9 100644
--- a/viewer/src/@types/gallery.d.ts
+++ b/viewer/src/@types/gallery.d.ts
@@ -40,6 +40,9 @@ declare namespace Gallery {
40 interface PlainText extends Item { 40 interface PlainText extends Item {
41 properties: PlainTextProperties, 41 properties: PlainTextProperties,
42 } 42 }
43 interface PDF extends Item {
44 properties: PDFProperties,
45 }
43 interface Directory extends Item { 46 interface Directory extends Item {
44 properties: DirectoryProperties, 47 properties: DirectoryProperties,
45 } 48 }
@@ -50,7 +53,7 @@ declare namespace Gallery {
50 tags: RawTag[], 53 tags: RawTag[],
51 path: string, 54 path: string,
52 thumbnail?: Thumbnail 55 thumbnail?: Thumbnail
53 properties: OtherProperties | PictureProperties | PlainTextProperties | DirectoryProperties, 56 properties: OtherProperties | PictureProperties | PlainTextProperties | PDFProperties | DirectoryProperties,
54 } 57 }
55 interface Resolution { 58 interface Resolution {
56 width: number, 59 width: number,
@@ -69,6 +72,10 @@ declare namespace Gallery {
69 type: "plaintext", 72 type: "plaintext",
70 resource: string, 73 resource: string,
71 } 74 }
75 interface PDFProperties {
76 type: "pdf",
77 resource: string,
78 }
72 interface DirectoryProperties { 79 interface DirectoryProperties {
73 type: "directory", 80 type: "directory",
74 items: Item[] 81 items: Item[]
@@ -78,5 +85,5 @@ declare namespace Gallery {
78 resolution: Resolution 85 resolution: Resolution
79 } 86 }
80 type RawTag = string; 87 type RawTag = string;
81 type ItemType = "other" | "picture" | "plaintext" | "directory"; 88 type ItemType = "other" | "picture" | "plaintext" | "pdf" | "directory";
82} 89}