diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-08-06 21:10:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 21:10:04 +0200 |
commit | 0d1a522a03c22749e96dab06ca7b3e8b428df701 (patch) | |
tree | 742f0f5495db3ef306b94b078957336c764fbbc7 /cli/dts | |
parent | 2b53602d3c798b68db4ce986546d3434b986096a (diff) |
revert: allow URL for permissions (#11600)
Revert changes to "net" permissions in regards to handling URLs
introduced in 15b0e61de.
Diffstat (limited to 'cli/dts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 2 | ||||
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 8aa478f12..a312f4bda 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2159,7 +2159,7 @@ declare namespace Deno { * "github.com" * "deno.land:8080" */ - host?: string | URL; + host?: string; } export interface EnvPermissionDescriptor { 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<string | URL>; + 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<string | URL>; + net?: "inherit" | boolean | string[]; plugin?: "inherit" | boolean; read?: "inherit" | boolean | Array<string | URL>; run?: "inherit" | boolean | Array<string | URL>; |