Skip to content

Commit

Permalink
docs: mark Deno.fdatasync and Deno.s^Cc as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervonb committed Sep 19, 2021
1 parent e1144fd commit b341532
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/dts/lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ declare namespace Deno {
): Promise<number>;

/**
* @deprecated Use `Deno.File.prototype.syncSync` instead.
* 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 });
Expand All @@ -753,6 +754,7 @@ declare namespace Deno {
export function fsyncSync(rid: number): void;

/**
* @deprecated Use `Deno.File.prototype.sync` instead.
* 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 });
Expand All @@ -764,7 +766,8 @@ declare namespace Deno {
*/
export function fsync(rid: number): Promise<void>;

/*
/**
* @deprecated Use `Deno.File.prototype.datasyncSync` instead.
* Synchronously flushes any pending data operations of the given file stream to disk.
* ```ts
* const file = Deno.openSync("my_file.txt", { read: true, write: true, create: true });
Expand All @@ -776,6 +779,7 @@ declare namespace Deno {
export function fdatasyncSync(rid: number): void;

/**
* @deprecated Use `Deno.File.prototype.datasync` instead.
* Flushes any pending data operations of the given file stream to disk.
* ```ts
* const file = await Deno.open("my_file.txt", { read: true, write: true, create: true });
Expand Down

0 comments on commit b341532

Please sign in to comment.