diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-10 08:39:56 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 22:39:56 +0000 |
commit | a445ebd74fc4bb2a949828e155fcfe1d39d9f617 (patch) | |
tree | 0b97113f3d57a1f58aba1a2357061719d5ae2156 /cli/tsc/dts | |
parent | 064a73f7a08eb12d99fcdf8844e9ce5db62be78b (diff) |
BREAKING(fs): remove `Deno.fsync[Sync]()` (#25448)
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'cli/tsc/dts')
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 178f7d3cb..adda5791b 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -1785,44 +1785,6 @@ declare namespace Deno { */ export function createSync(path: string | URL): FsFile; - /** - * Flushes any pending data and metadata operations of the given file stream - * to disk. - * - * ```ts - * const file = await Deno.open( - * "my_file.txt", - * { read: true, write: true, create: true }, - * ); - * await file.write(new TextEncoder().encode("Hello World")); - * await file.truncate(1); - * await Deno.fsync(file.rid); - * console.log(await Deno.readTextFile("my_file.txt")); // H - * ``` - * - * @category File System - */ - export function fsync(rid: number): Promise<void>; - - /** - * Synchronously flushes any pending data and metadata operations of the given - * file stream to disk. - * - * ```ts - * const file = Deno.openSync( - * "my_file.txt", - * { read: true, write: true, create: true }, - * ); - * file.writeSync(new TextEncoder().encode("Hello World")); - * file.truncateSync(1); - * Deno.fsyncSync(file.rid); - * console.log(Deno.readTextFileSync("my_file.txt")); // H - * ``` - * - * @category File System - */ - export function fsyncSync(rid: number): void; - /** The Deno abstraction for reading and writing files. * * This is the most straight forward way of handling files within Deno and is |