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.2.3/mod.ts";

A server router handler can use this Request type to ferry type information to the client about what routes exist and what data they accept/return. The client uses the RouterShape to infer which property accesses are valid and what their response type will be.

Type Parameters

optional
Shape = never

Properties

optional
[_client]: { router: Shape; }