aboutsummaryrefslogtreecommitdiff
path: root/vfs/vfs.d.ts
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-10-24 03:41:47 +0700
committerShulhan <ms@kilabit.info>2023-10-24 22:28:25 +0700
commit85c3fc0431e7e75a41894d4669f6a46bbda5440b (patch)
tree15b73a82e9eaaa9ac9f2558578c8d7610ad392cd /vfs/vfs.d.ts
parent891a860299ac76739d59f46280cbed63ff07743e (diff)
downloadpakakeh.ts-85c3fc0431e7e75a41894d4669f6a46bbda5440b.tar.xz
all: fix all linter warnings from tsc and eslint
In this changes we introduce eslint as our linter for TypeScript and update our tsconfig to be more strict. The ".eslintrc.yaml" and "tsconfig.json" is taken from golang/website repository [1]. [1]: https://cs.opensource.google/go/x/website
Diffstat (limited to 'vfs/vfs.d.ts')
-rw-r--r--vfs/vfs.d.ts40
1 files changed, 20 insertions, 20 deletions
diff --git a/vfs/vfs.d.ts b/vfs/vfs.d.ts
index 5e89b33..a7d365d 100644
--- a/vfs/vfs.d.ts
+++ b/vfs/vfs.d.ts
@@ -1,27 +1,27 @@
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;
+ name: string;
+ path: 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: WuiVfsNodeInterface): Promise<WuiResponseInterface>;
+ id: string;
+ Open(path: string, is_dir: boolean): Promise<WuiResponseInterface>;
+ OpenNode(node: WuiVfsNodeInterface): Promise<WuiResponseInterface>;
}
export declare class WuiVfs {
- opts: WuiVfsOptions;
- private el;
- private com_path;
- private com_list;
- constructor(opts: WuiVfsOptions);
- OpenNode(node: WuiVfsNodeInterface): void;
- OpenDir(path: string): Promise<void>;
- Set(node: WuiVfsNodeInterface): void;
+ opts: WuiVfsOptions;
+ private el;
+ private com_path;
+ private com_list;
+ constructor(opts: WuiVfsOptions);
+ OpenNode(node: WuiVfsNodeInterface): void;
+ OpenDir(path: string): Promise<void>;
+ Set(node: WuiVfsNodeInterface): void;
}