mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
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) >
```
This commit is contained in:
parent
3922ceda03
commit
94a5103b04
1 changed files with 2 additions and 2 deletions
4
cli/dts/lib.deno.ns.d.ts
vendored
4
cli/dts/lib.deno.ns.d.ts
vendored
|
@ -351,11 +351,11 @@ declare namespace Deno {
|
||||||
* console.log(Deno.osRelease());
|
* 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
|
* Under consideration to possibly move to Deno.build or Deno.versions and if
|
||||||
* it should depend sys-info, which may not be desirable.
|
* it should depend sys-info, which may not be desirable.
|
||||||
*
|
*
|
||||||
* @tags allow-env
|
* @tags allow-sys
|
||||||
* @category Runtime Environment
|
* @category Runtime Environment
|
||||||
*/
|
*/
|
||||||
export function osRelease(): string;
|
export function osRelease(): string;
|
||||||
|
|
Loading…
Add table
Reference in a new issue