[]previous and next page

ParamsView

The params a pattern names.

The params a pattern names. Unknown patterns give a loose record.

Import#

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

Signature#

ts
type ParamsView<P extends string> = string extends P
  ? Readonly<Record<string, string | undefined>>
  : ParamsOf<P>