Files
huishou/node_modules/@dcloudio/uni-h5-vite/dist/plugin/configureServer/middlewares/static.d.ts
T
2026-07-27 14:07:26 +08:00

10 lines
468 B
TypeScript

/// <reference types="node" />
import type { IncomingMessage, ServerResponse } from 'http';
interface UniStaticMiddlewareOptions {
etag: boolean;
resolve: (pathname: string) => string | void;
}
export type NextHandler = () => void | Promise<void>;
export declare function uniStaticMiddleware(opts: UniStaticMiddlewareOptions): (req: IncomingMessage, res: ServerResponse, next: NextHandler) => void | Promise<void> | ServerResponse<IncomingMessage>;
export {};