MiniSearch / server /http-compression.d.ts
github-actions[bot]
Sync from https://github.com/felladrin/MiniSearch
6ace587
Raw
History Blame Contribute Delete
405 Bytes
declare module "http-compression" {
import { IncomingMessage, ServerResponse } from "node:http";
interface Options {
gzip?: {
threshold?: number;
flush?: number;
};
brotli?: {
threshold?: number;
flush?: number;
};
}
export default function compression(
options?: Options,
): (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
}