Skip to main content
Module

x/cav/mod.ts>RouterRequest

A server framework for Deno
Go to Latest
interface RouterRequest
implements Request
Re-export
import { type RouterRequest } from "https://deno.land/x/cav@0.0.21/mod.ts";

A router handler on the server can use this Request type to ferry type information about valid routes to the client. The client uses the provided RouterShape to infer which property accesses are valid.

Type Parameters

optional
Shape extends RouterShape = Record<never, never>

Properties

optional
__cav: { endpointRequest?: never; routerRequest: Shape; }