aboutsummaryrefslogtreecommitdiff
path: root/src/types/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/index.ts')
-rw-r--r--src/types/index.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/types/index.ts b/src/types/index.ts
new file mode 100644
index 0000000..3a822ae
--- /dev/null
+++ b/src/types/index.ts
@@ -0,0 +1,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'