variable / @typed/router/AST

queryParam

Constructs one named query-parameter AST node.

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

Import

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

Signatures

export declare const queryParam: (name: string, value: PathAst) => PathAst.QueryParam;

Why

Literal and decoded query policies share the same value AST representation.

Ownership and lifetime

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

Source