[]previous and next page

RuntimeHref

A same-origin path that was chosen at run time (a validated redirect_url, a stored return path).

A same-origin path that was chosen at run time (a validated redirect_url, a stored return path). Typed navigation (navigate, <A to>, href) accepts it next to the registered page patterns. Build one with unsafeHref, never with a cast.

Import#

ts
import type { RuntimeHref } from "@shadow-js/router";

Signature#

ts
type RuntimeHref = string & { readonly [RUNTIME_HREF]: true }