type-alias / @typed/router/Route

PathType

Extracts the decoded path-only parameter record from a Route.

Package version
1.0.0-beta.7
Category
Route type inference
Since
1.0.0

Import

import type { PathType } from "@typed/router/Route";

Signatures

export type PathType<T extends Any> = Route.PathType<T>;

Why

Generic handlers can separate path data from query data.

Ownership and lifetime

TypeScript computes PathType from its Route input; the alias is erased and owns no runtime value.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source