feat: update type defination
This commit is contained in:
21
types.ts
21
types.ts
@@ -101,6 +101,7 @@ export interface TerminalSession {
|
||||
username: string;
|
||||
hostname: string;
|
||||
status: 'connecting' | 'connected' | 'disconnected';
|
||||
workspaceId?: string;
|
||||
}
|
||||
|
||||
export interface RemoteFile {
|
||||
@@ -109,3 +110,23 @@ export interface RemoteFile {
|
||||
size: string;
|
||||
lastModified: string;
|
||||
}
|
||||
|
||||
export type WorkspaceNode =
|
||||
| {
|
||||
id: string;
|
||||
type: 'pane';
|
||||
sessionId: string;
|
||||
}
|
||||
| {
|
||||
id: string;
|
||||
type: 'split';
|
||||
direction: 'horizontal' | 'vertical';
|
||||
children: WorkspaceNode[];
|
||||
sizes?: number[]; // relative sizes for children
|
||||
};
|
||||
|
||||
export interface Workspace {
|
||||
id: string;
|
||||
title: string;
|
||||
root: WorkspaceNode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user