Libraries
    Preparing search index...

    Concise shorthand for defining a typed path template.

    When multiple registered templates validate the same URL, the server ranks them by specificity: exact static routes first, then routes with more literal path segments, then routes with fewer dynamic segments. Registration order breaks ties between equally specific routes. This precedence applies to both HTTP endpoints and WebSocket subscriptions.

    const TodoById = route({ id: number().coerce() })`/${t => t.id}`;
    
    const Path = route`/some/path`;
    // or
    const Path = route()`/some/path`;

    Either a property map for typed path segments, or a TemplateStringsArray when used directly as a tagged template.

    A ParseStringSchemaBuilder, or a tagged-template function that produces one.