aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/@types')
-rw-r--r--viewer/src/@types/tag/Operation.ts5
-rw-r--r--viewer/src/@types/tag/index.d.ts8
2 files changed, 10 insertions, 3 deletions
diff --git a/viewer/src/@types/tag/Operation.ts b/viewer/src/@types/tag/Operation.ts
new file mode 100644
index 0000000..a0de92b
--- /dev/null
+++ b/viewer/src/@types/tag/Operation.ts
@@ -0,0 +1,5 @@
1export enum Operation {
2 INTERSECTION = '',
3 ADDITION = '+',
4 SUBSTRACTION = '-',
5}; \ No newline at end of file
diff --git a/viewer/src/@types/tag/index.d.ts b/viewer/src/@types/tag/index.d.ts
index 30bbebb..6a0c605 100644
--- a/viewer/src/@types/tag/index.d.ts
+++ b/viewer/src/@types/tag/index.d.ts
@@ -4,9 +4,11 @@ declare namespace Tag {
4 items: Gallery.Item[]; 4 items: Gallery.Item[];
5 children: Index; 5 children: Index;
6 } 6 }
7 interface NodeWithParent extends Node { 7 interface Search extends Node {
8 parent: Node; 8 parent?: Node;
9 operation: string; // Enum Operation
10 display: string;
9 } 11 }
10 type Search = Node | NodeWithParent; 12 type SearchByOperation = { [index: string]: Tag.Search[] };
11 type Index = { [index: string]: Node }; 13 type Index = { [index: string]: Node };
12} \ No newline at end of file 14} \ No newline at end of file