1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -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:
Geert-Jan Zwiers 2022-10-30 21:50:34 +01:00 committed by GitHub
parent 3922ceda03
commit 94a5103b04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;