Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/src/server/mod.ts>RouteContext

The next-gen web framework.
Extremely Popular
Go to Latest
type alias RouteContext
import { type RouteContext } from "https://deno.land/x/fresh@1.4.0/src/server/mod.ts";

Context passed to async route components.

Type Parameters

optional
T = any
optional
S = Record<string, unknown>
definition: { localAddr?: Deno.NetAddr; remoteAddr: Deno.NetAddr; renderNotFound: (data?: T) => Response | Promise<Response>; url: URL; route: string; params: Record<string, string>; state: S; data: T; }