diff options
Diffstat (limited to 'vfs/vfs.d.ts')
| -rw-r--r-- | vfs/vfs.d.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vfs/vfs.d.ts b/vfs/vfs.d.ts index bc16db6..2d3a538 100644 --- a/vfs/vfs.d.ts +++ b/vfs/vfs.d.ts @@ -12,8 +12,8 @@ export interface WuiVfsNodeInterface { } export interface WuiVfsOptions { id: string; - Open(path: string, is_dir: boolean): WuiResponseInterface; - OpenNode(node: WuiVfsNode): WuiResponseInterface; + Open(path: string, is_dir: boolean): Promise<WuiResponseInterface>; + OpenNode(node: WuiVfsNode): Promise<WuiResponseInterface>; } export declare class WuiVfs { opts: WuiVfsOptions; @@ -24,7 +24,7 @@ export declare class WuiVfs { OpenNode(node: WuiVfsNode): void; OpenDir(path: string): Promise<void>; } -declare class WuiVfsNode implements WuiVfsNodeInterface { +export declare class WuiVfsNode implements WuiVfsNodeInterface { path: string; name: string; content_type: string; @@ -35,4 +35,3 @@ declare class WuiVfsNode implements WuiVfsNodeInterface { childs: WuiVfsNode[]; constructor(opts: WuiVfsNodeInterface); } -export {}; |
