# route

Constructs a route-case Match AST node with its guard and handler.

## Signatures

```ts
export declare const route: (route: RouteAst, handler: MatchHandler<any, any, any, any>, guard?: Guard<any, any, any, any>) => MatchAst.Route;
```

## Why

Candidate order, decoding, guard selection, and output remain one inspectable registration unit.

## Ownership and lifetime

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