forked from onlook-dev/onlook
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathindex.ts
More file actions
52 lines (45 loc) · 1.06 KB
/
index.ts
File metadata and controls
52 lines (45 loc) · 1.06 KB
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
51
52
import { IdeType } from '../ide';
import { type Project } from '../projects';
import { ShellType } from '../constants/terminal';
export interface UserSettings {
id?: string;
enableAnalytics?: boolean;
signInMethod?: string;
editor?: EditorSettings;
chat?: ChatSettings;
}
export interface EditorSettings {
shouldWarnDelete?: boolean;
ideType?: IdeType;
enableBunReplace?: boolean;
buildFlags?: string;
newProjectPath?: string;
shellType?: ShellType;
}
export interface ChatSettings {
showSuggestions: boolean;
autoApplyCode: boolean;
expandCodeBlocks: boolean;
showMiniChat: boolean;
}
export interface ProjectsCache {
projects: Project[];
}
export interface UserMetadata {
id: string;
name?: string;
email?: string;
avatarUrl?: string;
plan?: string;
}
export interface AuthTokens {
accessToken: string;
refreshToken: string;
expiresAt: string;
expiresIn: string;
providerToken: string;
tokenType: string;
}
export interface AppState {
activeProjectId: string | null;
}