diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-09-19 20:46:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-19 14:46:54 +0200 |
commit | 269bf380e0fb2e532e7340c4ba64d4eaa4d5d45e (patch) | |
tree | 3af483755468fdaa1139eae3231360ce28fc3a19 | |
parent | e1144fd63569a79afc211d1f981029d67bf8f5ed (diff) |
fix(cli): move Deno.flock and Deno.funlock to unstable types (#12138)
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 26 | ||||
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 26 |
2 files changed, 26 insertions, 26 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 05e600ed7..054f3b385 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -786,32 +786,6 @@ declare namespace Deno { */ export function fdatasync(rid: number): Promise<void>; - /** **UNSTABLE**: New API should be tested first. - * - * Acquire an advisory file-system lock for the provided file. `exclusive` - * defaults to `false`. - */ - export function flock(rid: number, exclusive?: boolean): Promise<void>; - - /** **UNSTABLE**: New API should be tested first. - * - * Acquire an advisory file-system lock for the provided file. `exclusive` - * defaults to `false`. - */ - export function flockSync(rid: number, exclusive?: boolean): void; - - /** **UNSTABLE**: New API should be tested first. - * - * Release an advisory file-system lock for the provided file. - */ - export function funlock(rid: number): Promise<void>; - - /** **UNSTABLE**: New API should be tested first. - * - * Release an advisory file-system lock for the provided file. - */ - export function funlockSync(rid: number): void; - /** Close the given resource ID (rid) which has been previously opened, such * as via opening or creating a file. Closing a file when you are finished * with it is important to avoid leaking resources. diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 1a27f2b38..bfc4536f0 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1258,6 +1258,32 @@ declare namespace Deno { */ alpnProtocols?: string[]; } + + /** **UNSTABLE**: New API should be tested first. + * + * Acquire an advisory file-system lock for the provided file. `exclusive` + * defaults to `false`. + */ + export function flock(rid: number, exclusive?: boolean): Promise<void>; + + /** **UNSTABLE**: New API should be tested first. + * + * Acquire an advisory file-system lock for the provided file. `exclusive` + * defaults to `false`. + */ + export function flockSync(rid: number, exclusive?: boolean): void; + + /** **UNSTABLE**: New API should be tested first. + * + * Release an advisory file-system lock for the provided file. + */ + export function funlock(rid: number): Promise<void>; + + /** **UNSTABLE**: New API should be tested first. + * + * Release an advisory file-system lock for the provided file. + */ + export function funlockSync(rid: number): void; } declare function fetch( |