UNPKG

@worker-tools/location-polyfill

Version:

A Location polyfill for Cloudflare Workers.

17 lines (16 loc) 495 B
declare class WorkerLocationPolyfill implements WorkerLocation { #private; constructor(href: string); get hash(): string; get host(): string; get hostname(): string; get href(): string; get origin(): string; get pathname(): string; get port(): string; get protocol(): string; get search(): string; toString(): string; } declare function defineProperty(url: string, writable?: boolean): void; declare function polyfillLocation(event: Event): void;