aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types/gallery/index.d.ts
blob: 97cc207fd93bdee8262c2288646d728ddaaefb59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
declare namespace Gallery {
    interface Picture extends Item {
        properties: PictureProperties,
    }
    interface Directory extends Item {
        properties: DirectoryProperties,
    }
    interface Item {
        title: string,
        datetime: string,
        description: string,
        tags: RawTag[],
        path: string,
        thumbnail?: string,
        properties: PictureProperties | DirectoryProperties,
    }
    interface PictureProperties {
        type: "picture",
        resource: string,
    }
    interface DirectoryProperties {
        type: "directory",
        items: Item[]
    }
    type RawTag = string;
}