Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: mark Deno.fdatasync and Deno.sync as deprecated #12136

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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