function / @typed/router/Path

getQueryInputSchema

Builds the Effect Schema used to normalize matcher query input.

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

Import

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

Signatures

export declare function getQueryInputSchema(ast: RouteAst): Schema.Top;

Why

Repeated scalar values and literal constraints fail before handler selection.

Ownership and lifetime

getQueryInputSchema constructs and returns immutable Effect Schema values immediately. Any services are required later by the Effect that executes those Schemas.

Source