aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/@types')
-rw-r--r--viewer/src/@types/gallery/index.d.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts
new file mode 100644
index 0000000..2dd11fb
--- /dev/null
+++ b/viewer/src/@types/gallery/index.d.ts
@@ -0,0 +1,25 @@
1declare namespace Gallery {
2 interface Item {
3 title: string,
4 date: string,
5 description: string,
6 tags: string[],
7 path: string,
8 thumbnail: {
9 path: string,
10 },
11 properties: Image | Directory,
12 }
13 interface Image {
14 type: "image",
15 filesize: number,
16 resolution: {
17 width: number,
18 height: number,
19 }
20 }
21 interface Directory {
22 type: "directory",
23 items: Item[]
24 }
25} \ No newline at end of file