blob: 57edf803f15f0338c11d7cc2232263b876fad4a6 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
import { ViewElement, ViewSpecification } from "./uiModels";
export type Token = {
name: string;
value: string;
start: number;
end: number;
}
export type Statement = {
key: string;
arg?: string;
sub?: Statement[];
}
export type Identity = {
id: string,
label: string,
base?: string,
description?: string,
reference?: string,
children?: Identity[],
values?: Identity[],
}
export type Revision = {
description?: string,
reference?: string
};
export type Module = {
name: string;
namespace?: string;
prefix?: string;
identities: { [name: string]: Identity };
revisions: { [version: string]: Revision } ;
imports: { [prefix: string]: string };
features: { [feature: string]: { description?: string } };
typedefs: { [type: string]: ViewElement };
augments: { [path: string]: ViewSpecification[] };
groupings: { [group: string]: ViewSpecification };
views: { [view: string]: ViewSpecification };
elements: { [view: string]: ViewElement };
}
|