-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
44 lines (39 loc) · 1 KB
/
index.ts
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 { type WebElementAttributes } from '../WebElementAttributes'
import { type WebLine } from '../WebLine'
import { type WebMenu } from '../WebMenu'
import { type WebSpeakers } from '../WebSpeakers'
/**
* Describes a state to a web template.
*/
export interface WebState {
/**
* Describes the element representing the state.
*/
readonly element: {
/**
* The tag name of the element.
*/
readonly tagName: 'div' | 'a'
/**
* The attributes to include in the element.
*/
readonly attributes: WebElementAttributes
/**
* The content of the element.
*/
readonly content: {
/**
* Describes the speakers of the line/menu, if any, otherwise, null.
*/
readonly speakers: null | WebSpeakers
/**
* Describes the line itself, if any, otherwise, null.
*/
readonly line: null | WebLine
/**
* Describes the menu shown, if any, otherwise, null.
*/
readonly menu: null | WebMenu
}
}
}