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

x/deno/cli/tsc/dts/lib.deno.worker.d.ts>WorkerLocation

A modern runtime for JavaScript and TypeScript.
Latest
interface WorkerLocation
import { type WorkerLocation } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.worker.d.ts";

The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.

Properties

readonly
hash: string
readonly
host: string
readonly
hostname: string
readonly
href: string
readonly
origin: string
readonly
pathname: string
readonly
port: string
readonly
protocol: string

Methods

toString(): string
variable WorkerLocation
import { WorkerLocation } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.worker.d.ts";

The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.

type

{ readonly prototype: WorkerLocation; new (): never; }