diff options
Diffstat (limited to 'vfs/vfs.d.ts')
| -rw-r--r-- | vfs/vfs.d.ts | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/vfs/vfs.d.ts b/vfs/vfs.d.ts index 706ccc8..9a9ea22 100644 --- a/vfs/vfs.d.ts +++ b/vfs/vfs.d.ts @@ -12,18 +12,26 @@ export interface WuiVfsNodeInterface { } export interface WuiVfsOptions { id: string; - ListNodes: () => WuiResponseInterface; - OnClickNode(path: string, is_dir: boolean): void; + Open(path: string, is_dir: boolean): WuiResponseInterface; } -export declare function NewWuiVfs(opts: WuiVfsOptions): Promise<WuiResponseInterface>; export declare class WuiVfs { opts: WuiVfsOptions; private el; private com_path; private com_list; - private path_node; constructor(opts: WuiVfsOptions); - init(): Promise<WuiResponseInterface>; - private open; - OpenPath(this: WuiVfs, path: string): void; + OnClickNode(node: WuiVfsNode): void; + OpenDir(path: string): Promise<void>; } +declare class WuiVfsNode implements WuiVfsNodeInterface { + path: string; + name: string; + mod_time_epoch: number; + mod_time_rfc3339: string; + size: number; + mode: string; + is_dir: boolean; + childs: WuiVfsNode[]; + constructor(opts: WuiVfsNodeInterface); +} +export {}; |
