summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/dts/lib.deno.ns.d.ts2
-rw-r--r--cli/dts/lib.deno.unstable.d.ts4
-rw-r--r--cli/tests/unit/permissions_test.ts4
3 files changed, 3 insertions, 7 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>;
diff --git a/cli/tests/unit/permissions_test.ts b/cli/tests/unit/permissions_test.ts
index 2ed9c11a9..45ba39b96 100644
--- a/cli/tests/unit/permissions_test.ts
+++ b/cli/tests/unit/permissions_test.ts
@@ -71,8 +71,4 @@ unitTest(async function permissionURL() {
name: "run",
command: new URL(".", import.meta.url),
});
- await Deno.permissions.query({
- name: "net",
- host: new URL("https://deno.land/foo"),
- });
});