Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@v1.41.0/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@v1.41.0/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; }