From 88e8c32652873be1f230c31cad26e93efbfca0d6 Mon Sep 17 00:00:00 2001 From: Bhumij Gupta Date: Thu, 21 May 2020 17:36:42 +0530 Subject: [PATCH] docd: Replace obsolete Deno.homeDir() with Deno.dir('home') (#5708) --- cli/js/lib.deno.unstable.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/js/lib.deno.unstable.d.ts b/cli/js/lib.deno.unstable.d.ts index 38260c8fff..9bb4cfb90b 100644 --- a/cli/js/lib.deno.unstable.d.ts +++ b/cli/js/lib.deno.unstable.d.ts @@ -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."); * }