summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-04-27 20:09:56 +0200
committerBert Belder <bertbelder@gmail.com>2020-04-27 21:13:32 +0200
commitee4e6a1ef9f51beaaef5e189302afe1db68ff6c1 (patch)
treed0a94be76718630b210c481e9b0f3171542b4007 /cli/js/lib.deno.ns.d.ts
parentc190a0dbc48e7de6a63a2f633f59054d40800600 (diff)
Rename FileInfo time fields and represent them as Date objects (#4932)
This patch also increases the resolution of reported file times to sub-millisecond precision.
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index 9813b11fb..7a0477682 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -1316,15 +1316,15 @@ declare namespace Deno {
/** The last modification time of the file. This corresponds to the `mtime`
* field from `stat` on Linux/Mac OS and `ftLastWriteTime` on Windows. This
* may not be available on all platforms. */
- modified: number | null;
+ mtime: Date | null;
/** The last access time of the file. This corresponds to the `atime`
* field from `stat` on Unix and `ftLastAccessTime` on Windows. This may not
* be available on all platforms. */
- accessed: number | null;
+ atime: Date | null;
/** The creation time of the file. This corresponds to the `birthtime`
- * field from `stat` on Mac/BSD and `ftCreationTime` on Windows. This may not
- * be available on all platforms. */
- created: number | null;
+ * field from `stat` on Mac/BSD and `ftCreationTime` on Windows. This may
+ * not be available on all platforms. */
+ birthtime: Date | null;
/** ID of the device containing the file.
*
* _Linux/Mac OS only._ */