Files
SnowLuma/.pnpm-store/v11/files/45/3701f65c723492b9749ee6c45b1813a5e33c1bbba28b4440b0cdfbf4963658f141f8160bdd6d56cd6195e7648ce7663252a9935c1a81e080678a7958bc039c
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

19 lines
802 B
Plaintext

import { Context, Env, MiddlewareHandler } from "hono";
//#region src/serve-static.d.ts
type ServeStaticOptions<E extends Env = Env> = {
/**
* Root path. Relative path is based on current working directory from which the app was started.
*/
root?: string;
path?: string;
index?: string;
precompressed?: boolean; /** Allow percent signs in the routed request path. Defaults to false. */
allowPercentInPath?: boolean;
rewriteRequestPath?: (path: string, c: Context<E>) => string;
onFound?: (path: string, c: Context<E>) => void | Promise<void>;
onNotFound?: (path: string, c: Context<E>) => void | Promise<void>;
};
declare const serveStatic: <E extends Env = any>(options?: ServeStaticOptions<E>) => MiddlewareHandler<E>;
//#endregion
export { ServeStaticOptions, serveStatic };