function / @typed/router/Path

getQueryInputParameters

Collects matcher-facing query parameter declarations from a Route AST.

Package version
1.0.0-beta.7
Category
Query decoding
Since
1.0.0

Import

import { getQueryInputParameters } from "@typed/router/Path";

Signatures

export declare function getQueryInputParameters(ast: RouteAst): ReadonlyArray<QueryInputParameter>;

Why

Runtime input normalization follows the same declarations used by schema decoding.

Ownership and lifetime

getQueryInputParameters traverses the supplied AST immediately and returns a fresh array; child AST and Schema values in that array remain shared references.

Source