aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types/tag.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/@types/tag.d.ts')
-rw-r--r--viewer/src/@types/tag.d.ts40
1 files changed, 20 insertions, 20 deletions
diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts
index bb908d3..9ed2c04 100644
--- a/viewer/src/@types/tag.d.ts
+++ b/viewer/src/@types/tag.d.ts
@@ -17,25 +17,25 @@
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18*/ 18*/
19 19
20declare namespace Tag { 20import { Item, RawTag } from "./gallery";
21 interface Node {
22 tag: RawTag;
23 tagfiltered: RawTag;
24 rootPart: boolean;
25 childPart: boolean;
26 items: Item[];
27 children: Index;
28 }
29 interface Search extends Node {
30 parent?: Node;
31 operation: string; // Enum Operation
32 display: string;
33 }
34 type SearchByOperation = Record<string, Tag.Search[]>;
35 type Index = Record<string, Node>;
36 21
37 interface Category { 22export interface TagNode {
38 tag: string; 23 tag: RawTag;
39 index: Index; 24 tagfiltered: RawTag;
40 } 25 rootPart: boolean;
26 childPart: boolean;
27 items: Item[];
28 children: TagIndex;
29}
30export interface TagSearch extends TagNode {
31 parent?: TagNode;
32 operation: string; // Enum Operation
33 display: string;
34}
35export type TagSearchByOperation = Record<string, TagSearch[]>;
36export type TagIndex = Record<string, TagNode>;
37
38export interface TagCategory {
39 tag: string;
40 index: TagIndex;
41} 41}