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

x/fresh/src/server/router.ts>ErrorHandler

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

Type Parameters

optional
T = Record<string, unknown>
definition: (
req: Request,
err: unknown,
) => Response | Promise<Response>