Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

A modern runtime for JavaScript and TypeScript.
Latest
variable URL
import { URL } from "https://deno.land/x/deno@v2.0.4/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; parse(url: string | URL, base?: string | URL): URL | null; canParse(url: string | URL, base?: string | URL): boolean; createObjectURL(blob: Blob): string; revokeObjectURL(url: string): void; }