class URL

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

Constructors

new
URL(url: string, base?: string | URL)

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

createObjectURL(object: any): string
revokeObjectURL(url: string): void
toJSON(): string
toString(): string