aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-08-15 23:54:12 +0700
committerShulhan <ms@kilabit.info>2021-08-15 23:54:12 +0700
commit19d01aa025cf672f8ea5dd18eda7bf3f2466318f (patch)
tree22b5a7cade8f72875ed5c3da2552abfe46e51050
parent8b48009fd36ecbec394fb998ebce8ec9aa190760 (diff)
downloadpakakeh.ts-19d01aa025cf672f8ea5dd18eda7bf3f2466318f.tar.xz
vfs: make the is_dir field on IVfsNode to be optional
-rw-r--r--vfs/vfs.d.ts2
-rw-r--r--vfs/vfs.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/vfs/vfs.d.ts b/vfs/vfs.d.ts
index 90f4c8b..6e06ca2 100644
--- a/vfs/vfs.d.ts
+++ b/vfs/vfs.d.ts
@@ -1,7 +1,7 @@
export interface IVfsNode {
name: string;
path: string;
- is_dir: boolean;
+ is_dir?: boolean;
mod_time_epoch?: number;
mod_time_rfc3339?: string;
size?: number;
diff --git a/vfs/vfs.ts b/vfs/vfs.ts
index 4a2d042..0fef789 100644
--- a/vfs/vfs.ts
+++ b/vfs/vfs.ts
@@ -5,7 +5,7 @@
export interface IVfsNode {
name: string
path: string
- is_dir: boolean
+ is_dir?: boolean
mod_time_epoch?: number
mod_time_rfc3339?: string