10 lines
463 B
TypeScript
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 {};
|