uni-ticket-system/node_modules/@dcloudio/uni-h5-vite/dist/plugin/configureServer/middlewares/static.d.ts
2023-12-05 10:11:10 +08:00

10 lines
463 B
TypeScript

/// <reference types="node" />
import { 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 {};