UNPKG

@busy-hour/blaze

Version:

<h1 align='center'>🔥 Blaze</h1> <div align='center'> An event driven framework for 🔥 Hono.js </div>

19 lines (17 loc) • 436 B
import { compress as honoCompress } from 'hono/compress'; /** * Compress the REST response * @example * ```ts * const action = BlazeCreator.action({ * rest: 'POST /', * middlewares: [ * ['ALL', compress()] * ], * async handler(ctx) { * /// Do something with the request * } * }) * ``` */ export declare function compress(options?: Parameters<typeof honoCompress>[0]): import("hono").MiddlewareHandler;