Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
type alias ServeStaticOptions
import { type ServeStaticOptions } from "https://deno.land/x/hono@v4.1.7/middleware/serve-static/index.ts";

Type Parameters

optional
E extends Env = Env
definition: { root?: string; path?: string; mimes?: Record<string, string>; rewriteRequestPath?: (path: string) => string; onNotFound?: (path: string, c: Context<E>) => void | Promise<void>; }