Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/ext/url/lib.deno_url.d.ts>URL

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface URL
import { type URL } from "https://deno.land/x/deno@v1.38.1/ext/url/lib.deno_url.d.ts";

The URL interface represents an object providing static methods used for creating object URLs.

Properties

hash: string
host: string
hostname: string
href: string
readonly
origin: string
password: string
pathname: string
port: string
protocol: string
readonly
searchParams: URLSearchParams
username: string

Methods

toString(): string
toJSON(): string
variable URL
import { URL } from "https://deno.land/x/deno@v1.38.1/ext/url/lib.deno_url.d.ts";

The URL interface represents an object providing static methods used for creating object URLs.

type

{ readonly prototype: URL; new (url: string | URL, base?: string | URL): URL; canParse(url: string | URL, base?: string | URL): boolean; createObjectURL(blob: Blob): string; revokeObjectURL(url: string): void; }