@worker-tools/location-polyfill
Version:
A Location polyfill for Cloudflare Workers.
17 lines (16 loc) • 495 B
TypeScript
declare class WorkerLocationPolyfill implements WorkerLocation {
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;