diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-03 18:33:26 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 18:33:26 +1000 |
commit | 259752537f5c81101c47a547ae345f0863235cf6 (patch) | |
tree | 2dfae7a86a8a6260fdcad7f33eeac0b78dae0128 /cli/tsc/dts/lib.deno.ns.d.ts | |
parent | e49d80e500c384b381c375900060e5a476581541 (diff) |
BREAKING: remove `Deno.close()` (#25347)
Towards #22079
Diffstat (limited to 'cli/tsc/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index dcfdb8574..3ec06bf0b 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -2265,33 +2265,6 @@ declare namespace Deno { */ export function fdatasyncSync(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. - * - * ```ts - * const file = await Deno.open("my_file.txt"); - * // do work with "file" object - * Deno.close(file.rid); - * ``` - * - * It is recommended to define the variable with the `using` keyword so the - * runtime will automatically close the resource when it goes out of scope. - * Doing so negates the need to manually close the resource. - * - * ```ts - * using file = await Deno.open("my_file.txt"); - * // do work with "file" object - * ``` - * - * @deprecated This will be removed in Deno 2.0. See the - * {@link https://docs.deno.com/runtime/manual/advanced/migrate_deprecations | Deno 1.x to 2.x Migration Guide} - * for migration instructions. - * - * @category I/O - */ - export function close(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 |