diff options
Diffstat (limited to 'vfs/vfs.d.ts')
| -rw-r--r-- | vfs/vfs.d.ts | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/vfs/vfs.d.ts b/vfs/vfs.d.ts index 3be3f6a..3d18e7d 100644 --- a/vfs/vfs.d.ts +++ b/vfs/vfs.d.ts @@ -1,4 +1,4 @@ -export interface IVfsNode { +export interface WuiVfsNodeInterface { name: string; path: string; is_dir?: boolean; @@ -6,31 +6,31 @@ export interface IVfsNode { mod_time_rfc3339?: string; size?: number; mode?: string; - childs?: IVfsNode[]; + childs?: WuiVfsNodeInterface[]; content?: string; } -export interface Response { +export interface WuiVfsResponseInterface { code: number; message?: string; - data?: IVfsNode | IPathNode; + data?: WuiVfsNodeInterface | WuiPathNodeInterface; } -export interface VfsOptions { +export interface WuiVfsOptions { id: string; - ListNodes: () => IPathNode; + ListNodes: () => WuiPathNodeInterface; OnClickNode(path: string, is_dir: boolean): void; } -export declare class Vfs { - opts: VfsOptions; +export declare class WuiVfs { + opts: WuiVfsOptions; private el; private com_path; private com_list; private path_node; - constructor(opts: VfsOptions); + constructor(opts: WuiVfsOptions); private init; private open; - OpenPath(this: Vfs, path: string): void; + OpenPath(this: WuiVfs, path: string): void; } -declare type IPathNode = { - [key: string]: IVfsNode; +declare type WuiPathNodeInterface = { + [key: string]: WuiVfsNodeInterface; }; export {}; |
