summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert-Jan Zwiers <geertjanzwiers@protonmail.com>2022-10-30 21:50:34 +0100
committerGitHub <noreply@github.com>2022-10-30 21:50:34 +0100
commit94a5103b0452c43113c222f4dfb32bbf39be5c3f (patch)
treedb5c614f79f3f2001b3e51244d0e59c4b5f978a9
parent3922ceda03436464b4d04f957c43179772c40a3c (diff)
fix: update env to sys permission in jsdoc for Deno.osRelease (#16483)
This API needs `--allow-sys` permissions nowadays, but the docs still mention `--allow-env` permissions. ``` deno run .\file.ts ⚠️ ┌ Deno requests sys access to "osRelease". ├ Requested by `Deno.osRelease()` API ├ Run again with --allow-sys to bypass this prompt. └ Allow? [y/n] (y = yes, allow; n = no, deny) > ```
-rw-r--r--cli/dts/lib.deno.ns.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index f9baddb06..5e13a509f 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -351,11 +351,11 @@ declare namespace Deno {
* console.log(Deno.osRelease());
* ```
*
- * Requires `allow-env` permission.
+ * Requires `allow-sys` permission.
* Under consideration to possibly move to Deno.build or Deno.versions and if
* it should depend sys-info, which may not be desirable.
*
- * @tags allow-env
+ * @tags allow-sys
* @category Runtime Environment
*/
export function osRelease(): string;