/opt/canhelp/node_modules/@hono/node-server/dist
Edit: /opt/canhelp/node_modules/@hono/node-server/dist/serve-static.d.mts (698B)
import { Env, Context, MiddlewareHandler } from 'hono';
type ServeStaticOptions
= {
/**
* Root path, relative to current working directory from which the app was started. Absolute paths are not supported.
*/
root?: string;
path?: string;
index?: string;
precompressed?: boolean;
rewriteRequestPath?: (path: string, c: Context) => string;
onFound?: (path: string, c: Context) => void | Promise;
onNotFound?: (path: string, c: Context) => void | Promise;
};
declare const serveStatic: (options?: ServeStaticOptions) => MiddlewareHandler;
export { type ServeStaticOptions, serveStatic };