summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-09-28 21:46:50 +0900
committerGitHub <noreply@github.com>2022-09-28 21:46:50 +0900
commitfa9e7aab6d49f241a4eb30cc0e261f8ceb64af2f (patch)
tree04f3babcb09101e9264f021ecff53f7db266a80c /cli/dts/lib.deno.ns.d.ts
parentb312279e58e51520a38e51cca317a09cdadd7cb4 (diff)
feat: add --allow-sys permission flag (#16028)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index 97d3fed04..095ae139a 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -183,6 +183,15 @@ declare namespace Deno {
*/
env?: "inherit" | boolean | string[];
+ /** Specifies if the `sys` permission should be requested or revoked.
+ * If set to `"inherit"`, the current `sys` permission will be inherited.
+ * If set to `true`, the global `sys` permission will be requested.
+ * If set to `false`, the global `sys` permission will be revoked.
+ *
+ * Defaults to `false`.
+ */
+ sys?: "inherit" | boolean | string[];
+
/** Specifies if the `hrtime` permission should be requested or revoked.
* If set to `"inherit"`, the current `hrtime` permission will be inherited.
* If set to `true`, the global `hrtime` permission will be requested.
@@ -2913,6 +2922,7 @@ declare namespace Deno {
| "write"
| "net"
| "env"
+ | "sys"
| "ffi"
| "hrtime";
@@ -2958,6 +2968,19 @@ declare namespace Deno {
}
/** @category Permissions */
+ export interface SysPermissionDescriptor {
+ name: "sys";
+ kind?:
+ | "loadavg"
+ | "hostname"
+ | "systemMemoryInfo"
+ | "networkInterfaces"
+ | "osRelease"
+ | "getUid"
+ | "getGid";
+ }
+
+ /** @category Permissions */
export interface FfiPermissionDescriptor {
name: "ffi";
path?: string | URL;
@@ -2979,6 +3002,7 @@ declare namespace Deno {
| WritePermissionDescriptor
| NetPermissionDescriptor
| EnvPermissionDescriptor
+ | SysPermissionDescriptor
| FfiPermissionDescriptor
| HrtimePermissionDescriptor;