From 0d1a522a03c22749e96dab06ca7b3e8b428df701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 6 Aug 2021 21:10:04 +0200 Subject: revert: allow URL for permissions (#11600) Revert changes to "net" permissions in regards to handling URLs introduced in 15b0e61de. --- cli/dts/lib.deno.unstable.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 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 ccb5ae2cd..64efa0a2f 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1041,7 +1041,7 @@ declare namespace Deno { * }); * ``` */ - net?: "inherit" | boolean | Array; + net?: "inherit" | boolean | string[]; /** Specifies if the `plugin` permission should be requested or revoked. * If set to `"inherit"`, the current `plugin` permission will be inherited. @@ -1136,7 +1136,7 @@ declare interface WorkerOptions { * * For example: `["https://deno.land", "localhost:8080"]`. */ - net?: "inherit" | boolean | Array; + net?: "inherit" | boolean | string[]; plugin?: "inherit" | boolean; read?: "inherit" | boolean | Array; run?: "inherit" | boolean | Array; -- cgit v1.2.3