summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorcrowlKats <13135287+crowlKats@users.noreply.github.com>2021-04-10 00:12:00 +0200
committerGitHub <noreply@github.com>2021-04-10 00:12:00 +0200
commite7b7129b7a92b7500ded88f8f5baa25a7f59e56e (patch)
tree6716354fdd09b5b3ef37ec5769aa3ff4732fc039 /cli/dts/lib.deno.ns.d.ts
parent1c7217e3909c72135020ff415e61644e20e1f62c (diff)
feat(permissions): allow run permission to take values (#9833)
This commit adds allowlist support to `--allow-run` flag. Additionally `Deno.permissions.query()` allows to query for specific programs within allowlist.
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index 4934c642d..09f39d6b8 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -1967,10 +1967,10 @@ declare namespace Deno {
*
* If `stdout` and/or `stderr` were set to `"piped"`, they must be closed
* manually before the process can exit.
- *
+ *
* To run process to completion and collect output from both `stdout` and
* `stderr` use:
- *
+ *
* ```ts
* const p = Deno.run({ cmd, stderr: 'piped', stdout: 'piped' });
* const [status, stdout, stderr] = await Promise.all([
@@ -2135,6 +2135,7 @@ declare namespace Deno {
export interface RunPermissionDescriptor {
name: "run";
+ command?: string;
}
export interface ReadPermissionDescriptor {