summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Twiname <skott.twiname@gmail.com>2024-11-05 07:20:34 +1300
committerGitHub <noreply@github.com>2024-11-04 18:20:34 +0000
commitd55e30f41855d40b36019f347a15b6c8984eb3e9 (patch)
treed7d9fbdc01264e3f3ed98e7604ce923af8aa7cef
parent9a39a98b57de4183e054ab170592c85c97fac183 (diff)
fix(types): missing `import` permission on `PermissionOptionsObject` (#26627)
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts37
1 files changed, 23 insertions, 14 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index 36592e10d..6e0e84b68 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -556,14 +556,23 @@ 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.
+ /** Specifies if the `ffi` permission should be requested or revoked.
+ * If set to `"inherit"`, the current `ffi` permission will be inherited.
+ * If set to `true`, the global `ffi` permission will be requested.
+ * If set to `false`, the global `ffi` permission will be revoked.
*
* @default {false}
*/
- sys?: "inherit" | boolean | string[];
+ ffi?: "inherit" | boolean | Array<string | URL>;
+
+ /** Specifies if the `import` permission should be requested or revoked.
+ * If set to `"inherit"` the current `import` permission will be inherited.
+ * If set to `true`, the global `import` permission will be requested.
+ * If set to `false`, the global `import` permission will be revoked.
+ * If set to `Array<string>`, the `import` permissions will be requested with the
+ * specified domains.
+ */
+ import?: "inherit" | boolean | Array<string>;
/** Specifies if the `net` permission should be requested or revoked.
* if set to `"inherit"`, the current `net` permission will be inherited.
@@ -638,15 +647,6 @@ declare namespace Deno {
*/
net?: "inherit" | boolean | string[];
- /** Specifies if the `ffi` permission should be requested or revoked.
- * If set to `"inherit"`, the current `ffi` permission will be inherited.
- * If set to `true`, the global `ffi` permission will be requested.
- * If set to `false`, the global `ffi` permission will be revoked.
- *
- * @default {false}
- */
- ffi?: "inherit" | boolean | Array<string | URL>;
-
/** Specifies if the `read` permission should be requested or revoked.
* If set to `"inherit"`, the current `read` permission will be inherited.
* If set to `true`, the global `read` permission will be requested.
@@ -667,6 +667,15 @@ declare namespace Deno {
*/
run?: "inherit" | boolean | Array<string | URL>;
+ /** 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.
+ *
+ * @default {false}
+ */
+ sys?: "inherit" | boolean | string[];
+
/** Specifies if the `write` permission should be requested or revoked.
* If set to `"inherit"`, the current `write` permission will be inherited.
* If set to `true`, the global `write` permission will be requested.