-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
50 lines (45 loc) · 1022 Bytes
/
types.ts
File metadata and controls
50 lines (45 loc) · 1022 Bytes
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
45
46
47
48
49
50
export type SessionState = 'IDLE' | 'STARTING' | 'RUNNING' | 'ERROR' | 'DESTROYED'
export interface EditorProps {
colorScheme?: 'dark' | 'light'
defaultFolder?: string
disableInitialFocus?: boolean
fontSize?: number
hideActivityBar?: boolean
hideMinimap?: boolean
hideStatusBar?: boolean
persist?: boolean
port?: number
preload?: boolean
session?: string
startTimeout?: number
zoom?: number
}
export interface SessionEntry {
id: string
state: SessionState
url: string | null
}
export interface EditorDeckConfig {
defaultFolder?: string
defaultPort?: number
startTimeout?: number
zoom?: number
}
export interface StartRequest {
colorScheme?: 'dark' | 'light'
defaultFolder: string
defaultPort?: number
fontSize?: number
hideActivityBar?: boolean
hideMinimap?: boolean
hideStatusBar?: boolean
port?: number
session: string
startTimeout?: number
}
export interface StartedEvent {
error?: string
session: string
state: 'running' | 'error'
url: string
}