aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
authorZero~Informatique2021-07-02 22:59:56 +0200
committerZero~Informatique2021-07-03 00:05:22 +0200
commit92cb34b719b481faf417760f307241e8f6d777a9 (patch)
treeba33af35b8bb07e6c1c19b84f6c3af37c791584c /viewer/src/@types
parent9165cc1efcf7791f78b61b2c51a9de651b1b09aa (diff)
downloadldgallery-92cb34b719b481faf417760f307241e8f6d777a9.tar.gz
viewer: types normalization - tag.d.ts
GitHub: closes #301
Diffstat (limited to 'viewer/src/@types')
-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}