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

x/fresh/src/server/types.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.1/src/server/types.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; }