mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
fix(declaration): change Deno.open
example to not use Deno.close(rid)
(#17218)
This commit is contained in:
parent
1a61fe910c
commit
76f30a1878
1 changed files with 2 additions and 2 deletions
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -1572,7 +1572,7 @@ declare namespace Deno {
|
|||
* ```ts
|
||||
* const file = await Deno.open("/foo/bar.txt", { read: true, write: true });
|
||||
* // Do work with file
|
||||
* Deno.close(file.rid);
|
||||
* file.close();
|
||||
* ```
|
||||
*
|
||||
* Requires `allow-read` and/or `allow-write` permissions depending on
|
||||
|
@ -1594,7 +1594,7 @@ declare namespace Deno {
|
|||
* ```ts
|
||||
* const file = Deno.openSync("/foo/bar.txt", { read: true, write: true });
|
||||
* // Do work with file
|
||||
* Deno.close(file.rid);
|
||||
* file.close();
|
||||
* ```
|
||||
*
|
||||
* Requires `allow-read` and/or `allow-write` permissions depending on
|
||||
|
|
Loading…
Reference in a new issue