aboutsummaryrefslogtreecommitdiff
path: root/src/types/index.ts
blob: 3a822ae1c1c4601cf5221e8b0d80d20f10801d5d (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
export interface FileEntry {
  name: string
  path: string
  is_dir: boolean
  children?: FileEntry[]
}

export interface Tab {
  id: string
  path: string
  name: string
  language: string
  content: string
  modified: boolean
}

export type Language =
  | 'typescript'
  | 'javascript'
  | 'rust'
  | 'json'
  | 'markdown'
  | 'html'
  | 'css'
  | 'python'
  | 'plaintext'