aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types/tag/index.d.ts
blob: 181f47ac964d90f8f3ee014043f7b7c7f3e08501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
declare namespace Tag {
    interface Node {
        tag: Gallery.RawTag;
        items: Gallery.Item[];
        children: Index;
    }
    interface Search extends Node {
        parent?: Node;
        operation: string; // Enum Operation
        display: string;
    }
    type SearchByOperation = { [index: string]: Tag.Search[] };
    type Index = { [index: string]: Node };
}