Import
import { getUrl } from "@typed/navigation/_core";Signatures
export declare const getUrl: (origin: string, urlOrPath: string | URL) => URL;Why
Provider adapters need one URL-normalization rule before computing sameDocument or committing
history.
Ownership and lifetime
This synchronous helper acquires no resources. Native URL construction errors are thrown;
provider code uses its internal Effect wrapper when a NavigationError channel is required.
Examples
import { getUrl } from "@typed/navigation/_core"
const url = getUrl("https://example.com", "/account")Other public imports
These import paths expose the same declaration. Each page retains its own public name and signature.