From febac6b99e3d4c7613706a299042abf2d59def3f Mon Sep 17 00:00:00 2001 From: nkulic Date: Thu, 2 Nov 2023 11:54:39 +0100 Subject: [PATCH] fix: StatResult ctime type --- FS.common.js | 2 +- index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FS.common.js b/FS.common.js index 2f9c2a3b..fd70f2a0 100755 --- a/FS.common.js +++ b/FS.common.js @@ -54,7 +54,7 @@ type StatResult = { path: string; // The absolute path to the item size: string; // Size in bytes mode: number; // UNIX file mode - ctime: number; // Created date + ctime: Date; // Created date mtime: number; // Last modified date originalFilepath: string; // In case of content uri this is the pointed file path, otherwise is the same as path isFile: () => boolean; // Is the file just a file? diff --git a/index.d.ts b/index.d.ts index 25ffca18..7798adac 100644 --- a/index.d.ts +++ b/index.d.ts @@ -22,7 +22,7 @@ type StatResult = { path: string // The absolute path to the item size: number // Size in bytes mode: number // UNIX file mode - ctime: number // Created date + ctime: Date // Created date mtime: number // Last modified date originalFilepath: string // In case of content uri this is the pointed file path, otherwise is the same as path isFile: () => boolean // Is the file just a file?