summaryrefslogtreecommitdiff
path: root/cli/dts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts36
-rw-r--r--cli/dts/lib.deno.unstable.d.ts42
2 files changed, 36 insertions, 42 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index ed6e8ad4f..86be40c67 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -3963,6 +3963,42 @@ declare namespace Deno {
export function ftruncate(rid: number, len?: number): Promise<void>;
/**
+ * Synchronously changes the access (`atime`) and modification (`mtime`) times
+ * of a file stream resource referenced by `rid`. Given times are either in
+ * seconds (UNIX epoch time) or as `Date` objects.
+ *
+ * ```ts
+ * const file = Deno.openSync("file.txt", { create: true, write: true });
+ * Deno.futimeSync(file.rid, 1556495550, new Date());
+ * ```
+ *
+ * @category File System
+ */
+ export function futimeSync(
+ rid: number,
+ atime: number | Date,
+ mtime: number | Date,
+ ): void;
+
+ /**
+ * Changes the access (`atime`) and modification (`mtime`) times of a file
+ * stream resource referenced by `rid`. Given times are either in seconds
+ * (UNIX epoch time) or as `Date` objects.
+ *
+ * ```ts
+ * const file = await Deno.open("file.txt", { create: true, write: true });
+ * await Deno.futime(file.rid, 1556495550, new Date());
+ * ```
+ *
+ * @category File System
+ */
+ export function futime(
+ rid: number,
+ atime: number | Date,
+ mtime: number | Date,
+ ): Promise<void>;
+
+ /**
* Synchronously returns a `Deno.FileInfo` for the given file stream.
*
* ```ts
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 1085c7039..1b26cdd33 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -982,48 +982,6 @@ declare namespace Deno {
/** **UNSTABLE**: New API, yet to be vetted.
*
- * Synchronously changes the access (`atime`) and modification (`mtime`) times
- * of a file stream resource referenced by `rid`. Given times are either in
- * seconds (UNIX epoch time) or as `Date` objects.
- *
- * ```ts
- * const file = Deno.openSync("file.txt", { create: true, write: true });
- * Deno.futimeSync(file.rid, 1556495550, new Date());
- * ```
- *
- * Needs investigation into high precision time.
- *
- * @category File System
- */
- export function futimeSync(
- rid: number,
- atime: number | Date,
- mtime: number | Date,
- ): void;
-
- /** **UNSTABLE**: New API, yet to be vetted.
- *
- * Changes the access (`atime`) and modification (`mtime`) times of a file
- * stream resource referenced by `rid`. Given times are either in seconds
- * (UNIX epoch time) or as `Date` objects.
- *
- * ```ts
- * const file = await Deno.open("file.txt", { create: true, write: true });
- * await Deno.futime(file.rid, 1556495550, new Date());
- * ```
- *
- * Needs investigation into high precision time.
- *
- * @category File System
- */
- export function futime(
- rid: number,
- atime: number | Date,
- mtime: number | Date,
- ): Promise<void>;
-
- /** **UNSTABLE**: New API, yet to be vetted.
- *
* A generic transport listener for message-oriented protocols.
*
* @category Network