diff options
author | Maayan Hanin <maayan.asa.hanin@gmail.com> | 2020-06-27 00:37:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-26 17:37:03 -0400 |
commit | 598a7dcc8425c9b377d79dc86e298db862e45b91 (patch) | |
tree | 048afa3e1abc44d45ae1e950271c9b317479776f /cli/js/lib.deno.unstable.d.ts | |
parent | 42464e922d0bc435f32cf9d2707537a9558271fb (diff) |
fix(cli/permissions): panic on hostless URLs (#6500)
Diffstat (limited to 'cli/js/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/js/lib.deno.unstable.d.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/js/lib.deno.unstable.d.ts b/cli/js/lib.deno.unstable.d.ts index f4a7b2786..da3c65143 100644 --- a/cli/js/lib.deno.unstable.d.ts +++ b/cli/js/lib.deno.unstable.d.ts @@ -992,6 +992,12 @@ declare namespace Deno { export interface NetPermissionDescriptor { name: "net"; + /** Optional url associated with this descriptor. + * + * If specified: must be a valid url. Expected format: <scheme>://<host_or_ip>[:port][/path] + * If the scheme is unknown, callers should specify some scheme, such as x:// na:// unknown:// + * + * See: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml */ url?: string; } |