UNPKG

@connectrpc/connect-node

Version:

Connect is a family of libraries for building and consuming APIs on different languages and platforms, and [@connectrpc/connect](https://www.npmjs.com/package/@connectrpc/connect) brings type-safe APIs with Protobuf to TypeScript.

16 lines (15 loc) 817 B
import type { Compression } from "@connectrpc/connect/protocol"; /** * The gzip compression algorithm, implemented with the Node.js built-in module * zlib. This value can be used for the `sendCompression` and `acceptCompression` * option of client transports, or for the `acceptCompression` option of server * plugins like `fastifyConnectPlugin` from @connectrpc/connect-fastify. */ export declare const compressionGzip: Compression; /** * The brotli compression algorithm, implemented with the Node.js built-in module * zlib. This value can be used for the `sendCompression` and `acceptCompression` * option of client transports, or for the `acceptCompression` option of server * plugins like `fastifyConnectPlugin` from @connectrpc/connect-fastify. */ export declare const compressionBrotli: Compression;