variable / @typed/router/AST

queryParams

Constructs a query-parameter collection Path AST node.

Package version
1.0.0-beta.13
Category
Path syntax
Since
1.0.0

Import

import { queryParams } from "@typed/router/AST";

Signatures

export declare const queryParams: (value: ReadonlyArray<PathAst.QueryParam>) => PathAst.QueryParams;

Why

Declared query keys remain grouped for matcher input and schema analysis.

Ownership and lifetime

queryParams returns a fresh plain AST node immediately and retains any supplied child nodes or arrays by reference; it acquires no external resource.

Source