From 15b0e61de523c1a0157e754379f0ec7decf0c23e Mon Sep 17 00:00:00 2001 From: Leo K Date: Fri, 6 Aug 2021 15:04:00 +0200 Subject: feat(runtime): allow URL for permissions (#11578) --- cli/dts/lib.deno.unstable.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cli/dts/lib.deno.unstable.d.ts') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 6fbd13f5f..ccb5ae2cd 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -959,7 +959,7 @@ declare namespace Deno { * * Defaults to "inherit". */ - env?: "inherit" | boolean; + env?: "inherit" | boolean | string[]; /** Specifies if the `hrtime` permission should be requested or revoked. * If set to `"inherit"`, the current `hrtime` permission will be inherited. @@ -1041,7 +1041,7 @@ declare namespace Deno { * }); * ``` */ - net?: "inherit" | boolean | string[]; + net?: "inherit" | boolean | Array; /** Specifies if the `plugin` permission should be requested or revoked. * If set to `"inherit"`, the current `plugin` permission will be inherited. @@ -1070,7 +1070,7 @@ declare namespace Deno { * * Defaults to "inherit". */ - run?: "inherit" | boolean; + run?: "inherit" | boolean | Array; /** Specifies if the `write` permission should be requested or revoked. * If set to `"inherit"`, the current `write` permission will be inherited. @@ -1129,17 +1129,17 @@ declare interface WorkerOptions { namespace?: boolean; /** Set to `"none"` to disable all the permissions in the worker. */ permissions?: "inherit" | "none" | { - env?: "inherit" | boolean; + env?: "inherit" | boolean | string[]; hrtime?: "inherit" | boolean; /** The format of the net access list must be `hostname[:port]` * in order to be resolved. * * For example: `["https://deno.land", "localhost:8080"]`. */ - net?: "inherit" | boolean | string[]; + net?: "inherit" | boolean | Array; plugin?: "inherit" | boolean; read?: "inherit" | boolean | Array; - run?: "inherit" | boolean; + run?: "inherit" | boolean | Array; write?: "inherit" | boolean | Array; }; }; -- cgit v1.2.3