Files
SnowLuma/.pnpm-store/v11/files/d7/da9481f3f3a2337755cc14829d09f21f8bfa7e151d84d9ecdf3bf00f66742d717578538a14cc84ff8bf3659e6dbd0cd54e947e14518262be7ed490b4b06fe8
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

21 lines
1.0 KiB
Plaintext

import { Env, MiddlewareHandler } from "../../types.js";
import { ServeStaticOptions as ServeStaticOptions$1 } from "../../middleware/serve-static/index.js";
//#region src/adapter/cloudflare-workers/serve-static.d.ts
/**
* @deprecated `hono/cloudflare-workers` will be removed in v5. Install `@hono/cloudflare-workers` and import from there instead.
*/
export type ServeStaticOptions<E extends Env = Env> = ServeStaticOptions$1<E> & {
namespace?: unknown;
manifest?: object | string;
};
/**
* @deprecated
* `serveStatic` in the Cloudflare Workers adapter is deprecated.
* You can serve static files directly using Cloudflare Static Assets.
* @see https://developers.cloudflare.com/workers/static-assets/
* Cloudflare Static Assets is currently in open beta. If this doesn't work for you,
* please consider using Cloudflare Pages. You can start to create the Cloudflare Pages
* application with the `npm create hono@latest` command.
*/
export declare const serveStatic: <E extends Env = Env>(options?: ServeStaticOptions<E>) => MiddlewareHandler;
//#endregion