aboutsummaryrefslogtreecommitdiff
path: root/vfs/vfs.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vfs/vfs.d.ts')
-rw-r--r--vfs/vfs.d.ts30
1 files changed, 10 insertions, 20 deletions
diff --git a/vfs/vfs.d.ts b/vfs/vfs.d.ts
index 2d3a538..177fcfd 100644
--- a/vfs/vfs.d.ts
+++ b/vfs/vfs.d.ts
@@ -2,18 +2,18 @@ import { WuiResponseInterface } from "../response";
export interface WuiVfsNodeInterface {
name: string;
path: string;
- is_dir?: boolean;
- content_type?: string;
- mod_time?: number;
- size?: number;
- mode?: string;
- childs?: WuiVfsNodeInterface[];
- content?: string;
+ is_dir: boolean;
+ content_type: string;
+ mod_time: number;
+ size: number;
+ mode: string;
+ childs: WuiVfsNodeInterface[];
+ content: string;
}
export interface WuiVfsOptions {
id: string;
Open(path: string, is_dir: boolean): Promise<WuiResponseInterface>;
- OpenNode(node: WuiVfsNode): Promise<WuiResponseInterface>;
+ OpenNode(node: WuiVfsNodeInterface): Promise<WuiResponseInterface>;
}
export declare class WuiVfs {
opts: WuiVfsOptions;
@@ -21,17 +21,7 @@ export declare class WuiVfs {
private com_path;
private com_list;
constructor(opts: WuiVfsOptions);
- OpenNode(node: WuiVfsNode): void;
+ OpenNode(node: WuiVfsNodeInterface): void;
OpenDir(path: string): Promise<void>;
-}
-export declare class WuiVfsNode implements WuiVfsNodeInterface {
- path: string;
- name: string;
- content_type: string;
- mod_time: number;
- size: number;
- mode: string;
- is_dir: boolean;
- childs: WuiVfsNode[];
- constructor(opts: WuiVfsNodeInterface);
+ Set(node: WuiVfsNodeInterface): void;
}