aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/helpApp/src/models/tocNode.ts
blob: ae73ec43d710724c89b8865a913e45740dc48353 (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
export type VersionInfo = {
  label: string,
  path: string,
  date: string
}

export type TocNode  = {
  label: string; 
  versions: {
    [versionKey: string]: VersionInfo,
    current: VersionInfo
  };
  nodes?: TocNodeCollection;
}

export type TocNodeCollection = { [tocNodeKey: string]: TocNode };


export type TocTreeNode = {
  label: string;
  uri: string;
  nodes?: TocTreeNode[];
  disabled?: boolean;
}