mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
docd: Replace obsolete Deno.homeDir() with Deno.dir('home') (#5708)
This commit is contained in:
parent
aea5b12bae
commit
88e8c32652
1 changed files with 1 additions and 1 deletions
2
cli/js/lib.deno.unstable.d.ts
vendored
2
cli/js/lib.deno.unstable.d.ts
vendored
|
@ -1207,7 +1207,7 @@ declare namespace Deno {
|
|||
* ```ts
|
||||
* const status = await Deno.permissions.request({ name: "env" });
|
||||
* if (status.state === "granted") {
|
||||
* console.log(Deno.homeDir());
|
||||
* console.log(Deno.dir("home");
|
||||
* } else {
|
||||
* console.log("'env' permission is denied.");
|
||||
* }
|
||||
|
|
Loading…
Reference in a new issue