diff options
Diffstat (limited to 'src/types/index.ts')
| -rw-r--r-- | src/types/index.ts | 26 |
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' |