aboutsummaryrefslogtreecommitdiff
path: root/vfs/vfs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vfs/vfs.ts')
-rw-r--r--vfs/vfs.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/vfs/vfs.ts b/vfs/vfs.ts
index f580891..44c447b 100644
--- a/vfs/vfs.ts
+++ b/vfs/vfs.ts
@@ -21,11 +21,11 @@ export interface WuiVfsOptions {
// Open define an handler that will be called when a directory is clicked
// from the WuiVfsPath.
- Open(path: string, is_dir: boolean): WuiResponseInterface
+ Open(path: string, is_dir: boolean): Promise<WuiResponseInterface>
// OpenNode define an handler that will be called when a file is clicked
// from the WuiVfsList.
- OpenNode(node: WuiVfsNode): WuiResponseInterface
+ OpenNode(node: WuiVfsNode): Promise<WuiResponseInterface>
}
export class WuiVfs {
@@ -77,7 +77,7 @@ export class WuiVfs {
}
}
-class WuiVfsNode implements WuiVfsNodeInterface {
+export class WuiVfsNode implements WuiVfsNodeInterface {
path: string
name: string
content_type: string